feat(iflow): add thinking support for iFlow models

This commit is contained in:
hkfires
2025-12-16 14:22:05 +08:00
parent fcecbc7d46
commit b326ec3641
3 changed files with 32 additions and 5 deletions

View File

@@ -273,7 +273,7 @@ func StripThinkingFields(payload []byte, effortOnly bool) []byte {
"reasoning.effort",
}
if !effortOnly {
fieldsToRemove = append([]string{"reasoning"}, fieldsToRemove...)
fieldsToRemove = append([]string{"reasoning", "thinking"}, fieldsToRemove...)
}
out := payload
for _, field := range fieldsToRemove {