fix: update Qwen patch condition for model name

This commit is contained in:
Simon
2026-01-13 15:07:01 +08:00
parent 3fa7c8b85a
commit 2f2bdb4697

View File

@@ -34,8 +34,8 @@ export function modelPatch(body: Record<string, any>) {
const modelName = normalizeModelName(model) const modelName = normalizeModelName(model)
if (modelName.startsWith('qwen3')) { if (modelName.startsWith('qwen')) {
debug('Applying Qwen-3 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)
} }