From 935712308e6b3132278d519ea7774c54a7c757a5 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Tue, 30 Sep 2025 11:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.yaml | 2 +- internal/biz/router.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }