diff --git a/config/config.yaml b/config/config.yaml index f8057ef..4d834ba 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -5,7 +5,7 @@ server: ollama: base_url: "http://localhost:11434" - model: "qwen3:8b" + model: "qwen3-coder:480b-cloud" timeout: "120s" level: "info" format: "json" diff --git a/internal/biz/router.go b/internal/biz/router.go index b2384f1..063b127 100644 --- a/internal/biz/router.go +++ b/internal/biz/router.go @@ -71,15 +71,15 @@ func (r *AiRouterBiz) Route(ctx context.Context, req *entitys.ChatRequest) (*ent // Route 执行智能路由 func (r *AiRouterBiz) RouteWithSocket(c *websocket.Conn, req *entitys.ChatSockRequest) error { - session := c.Headers("X-Session", "") + session := c.Query("x-session", "") if len(session) == 0 { return errors.SessionNotFound } - auth := c.Headers("X-Authorization", "") + auth := c.Query("x-authorization", "") if len(auth) == 0 { return errors.AuthNotFound } - key := c.Headers("X-App-Key", "") + key := c.Query("x-app-key", "") if len(key) == 0 { return errors.KeyNotFound }