feat(model): disable thinking for Qwen model patch
This commit is contained in:
@@ -38,6 +38,7 @@ export function modelPatch(body: Record<string, any>) {
|
|||||||
if (modelName.startsWith('qwen')) {
|
if (modelName.startsWith('qwen')) {
|
||||||
debug('Applying Qwen patch: use higher temperature for auto fixing')
|
debug('Applying Qwen patch: use higher temperature for auto fixing')
|
||||||
body.temperature = Math.max(body.temperature || 0, 1.0)
|
body.temperature = Math.max(body.temperature || 0, 1.0)
|
||||||
|
body.enable_thinking = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modelName.startsWith('claude')) {
|
if (modelName.startsWith('claude')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user