feat: add load endpoint

This commit is contained in:
2026-04-10 12:29:34 +02:00
parent db14d816cb
commit 1a06577fa3
4 changed files with 114 additions and 6 deletions
+1
View File
@@ -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))
}