feat: improve qwen3 compatibility (#106)

* feat: improve qwen3 compatibility

* fix: qwen

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Simon
2026-01-13 15:04:03 +08:00
committed by GitHub
parent 7efce91a91
commit 3fa7c8b85a
4 changed files with 10 additions and 0 deletions

View File

@@ -34,6 +34,11 @@ export function modelPatch(body: Record<string, any>) {
const modelName = normalizeModelName(model)
if (modelName.startsWith('qwen3')) {
debug('Applying Qwen-3 patch: use higher temperature for auto fixing')
body.temperature = Math.max(body.temperature || 0, 1.0)
}
if (modelName.startsWith('claude')) {
debug('Applying Claude patch: disable thinking')
body.thinking = { type: 'disabled' }