feat(*): 模型渠道 - 支持系统模型图标并升级 Agnes 视频协议

This commit is contained in:
ddCat
2026-08-27 23:31:38 +08:00
parent 7cb6aed27d
commit b3e977a985
30 changed files with 861 additions and 44 deletions

View File

@@ -834,6 +834,9 @@ func proxySystemRequestPath(c *gin.Context, svc *service.Service, user *model.Us
return
}
modelName := proxyRequestModelForPath(path, c.GetHeader("Content-Type"), body)
if modelName == "" && c.Request.Method == http.MethodGet && path == "/agnesapi" {
modelName = strings.TrimSpace(c.Query("model_name"))
}
protocol := model.ChannelInterfaceType("")
capability := "text"
var channelModel *model.ChannelModel