adapter MiniMax model , avoid <think> tag output
This commit is contained in:
parent
6e5526bfd8
commit
2ca4c921b8
1 changed files with 8 additions and 0 deletions
|
|
@ -140,6 +140,14 @@ func (p *Provider) Chat(
|
||||||
requestBody[fieldName] = maxTokens
|
requestBody[fieldName] = maxTokens
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if reasoning_split, ok := options["reasoning_split"].(bool); ok && reasoning_split {
|
||||||
|
requestBody["reasoning_split"] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if strings.Contains(strings.ToLower(model), "minimax") {
|
||||||
|
requestBody["reasoning_split"] = true
|
||||||
|
}
|
||||||
|
|
||||||
if temperature, ok := asFloat(options["temperature"]); ok {
|
if temperature, ok := asFloat(options["temperature"]); ok {
|
||||||
lowerModel := strings.ToLower(model)
|
lowerModel := strings.ToLower(model)
|
||||||
// Kimi k2 models only support temperature=1.
|
// Kimi k2 models only support temperature=1.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue