mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
fix(iflow): remove thinking field from request body in thinking config handler
This commit is contained in:
@@ -504,6 +504,7 @@ func applyIFlowThinkingConfig(body []byte) []byte {
|
|||||||
|
|
||||||
// Remove reasoning_effort as we'll convert to model-specific format
|
// Remove reasoning_effort as we'll convert to model-specific format
|
||||||
body, _ = sjson.DeleteBytes(body, "reasoning_effort")
|
body, _ = sjson.DeleteBytes(body, "reasoning_effort")
|
||||||
|
body, _ = sjson.DeleteBytes(body, "thinking")
|
||||||
|
|
||||||
// GLM-4.6/4.7: Use chat_template_kwargs
|
// GLM-4.6/4.7: Use chat_template_kwargs
|
||||||
if strings.HasPrefix(model, "glm-4") {
|
if strings.HasPrefix(model, "glm-4") {
|
||||||
|
|||||||
Reference in New Issue
Block a user