feat(models): add model test debugger for saved model configs
Let admins send real requests against configured chat, embedding, rerank, VLM, and ASR models from settings, with thinking controls shown only when the model supports them.
This commit is contained in:
@@ -635,6 +635,8 @@ func RegisterModelRoutes(
|
||||
models.POST("", g.Admin(), handler.CreateModel)
|
||||
// 获取模型列表 — Viewer+
|
||||
models.GET("", g.Viewer(), handler.ListModels)
|
||||
// 调试已保存模型会发起真实上游调用并产生费用 — Admin+
|
||||
models.POST("/:id/debug", g.Admin(), handler.DebugModel)
|
||||
// 获取单个模型 — Viewer+
|
||||
models.GET("/:id", g.Viewer(), handler.GetModel)
|
||||
// 更新模型 — Admin+
|
||||
|
||||
Reference in New Issue
Block a user