diff --git a/internal/chat.go b/internal/chat.go index 296eb3a..e8529fb 100644 --- a/internal/chat.go +++ b/internal/chat.go @@ -288,7 +288,7 @@ func makeUpstreamRequest(token string, messages []Message, model string, imageUR LogDebug("Upstream request: model=%s, messages=%d, XFF=%s", targetModel, len(messages), randomIP) - client := &http.Client{Timeout: 60 * time.Second} + client := &http.Client{Timeout: 300 * time.Second} resp, err := client.Do(req) if err != nil { return nil, "", err diff --git a/internal/model_fetcher.go b/internal/model_fetcher.go index 12940d1..0db7b99 100644 --- a/internal/model_fetcher.go +++ b/internal/model_fetcher.go @@ -164,9 +164,9 @@ func initBuiltinMappings() { DisplayName: "GLM-5", UpstreamModelID: "glm-5", UpstreamModelName: "GLM-5", - EnableThinking: true, - AutoWebSearch: true, - MCPServers: []string{"advanced-search"}, + EnableThinking: false, + AutoWebSearch: false, + MCPServers: []string{}, OwnedBy: "z.ai", IsBuiltin: true, } @@ -175,8 +175,8 @@ func initBuiltinMappings() { UpstreamModelID: "glm-5", UpstreamModelName: "GLM-5-Thinking", EnableThinking: true, - AutoWebSearch: true, - MCPServers: []string{"advanced-search"}, + AutoWebSearch: false, + MCPServers: []string{}, OwnedBy: "z.ai", IsBuiltin: true, }