feat(model): disable thinking for Qwen model patch

This commit is contained in:
Simon
2026-02-23 17:30:35 +08:00
parent b1be05309b
commit 8cb57befb3

View File

@@ -38,6 +38,7 @@ export function modelPatch(body: Record<string, any>) {
if (modelName.startsWith('qwen')) {
debug('Applying Qwen patch: use higher temperature for auto fixing')
body.temperature = Math.max(body.temperature || 0, 1.0)
body.enable_thinking = false
}
if (modelName.startsWith('claude')) {