fix: resolve retired/preview gemini model routing and test configuration errors
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
2026-06-18 13:32:34 +00:00
parent 73a82e6175
commit 25e246061f
16 changed files with 227 additions and 43 deletions
+10
View File
@@ -44,6 +44,11 @@ func (p *MoonshotProvider) ChatCompletion(ctx context.Context, req *models.Unifi
body["max_completion_tokens"] = maxTokens
}
}
if strings.Contains(strings.ToLower(req.Model), "kimi-k2.6") {
if _, ok := body["temperature"]; ok {
body["temperature"] = 1.0
}
}
baseURL := strings.TrimRight(p.config.BaseURL, "/")
@@ -90,6 +95,11 @@ func (p *MoonshotProvider) ChatCompletionStream(ctx context.Context, req *models
body["max_completion_tokens"] = maxTokens
}
}
if strings.Contains(strings.ToLower(req.Model), "kimi-k2.6") {
if _, ok := body["temperature"]; ok {
body["temperature"] = 1.0
}
}
baseURL := strings.TrimRight(p.config.BaseURL, "/")