fix: resolve retired/preview gemini model routing and test configuration errors
This commit is contained in:
@@ -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, "/")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user