feat: add load endpoint
This commit is contained in:
@@ -10,5 +10,6 @@ pub fn router() -> Router<AppState> {
|
||||
.route("/models", get(models::list_models))
|
||||
.route("/completions", post(chat::completions))
|
||||
.route("/chat/completions", post(chat::chat_completions))
|
||||
.route("/models/{model}/load", post(models::load_model))
|
||||
.layer(middleware::from_fn(auth_middleware))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user