Merge PR #1345
This commit is contained in:
commit
89b98c77b2
1 changed files with 7 additions and 0 deletions
|
|
@ -164,6 +164,13 @@ func (p *Provider) Chat(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MiniMax provider: enable reasoning_split to separate CoT from content
|
||||||
|
// This prevents chain-of-thought from leaking into the main content field.
|
||||||
|
// See: https://github.com/sipeed/picoclaw/issues/1320
|
||||||
|
if strings.Contains(strings.ToLower(p.apiBase), "minimaxi.com") {
|
||||||
|
requestBody["reasoning_split"] = true
|
||||||
|
}
|
||||||
|
|
||||||
jsonData, err := json.Marshal(requestBody)
|
jsonData, err := json.Marshal(requestBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to marshal request: %w", err)
|
return nil, fmt.Errorf("failed to marshal request: %w", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue