fix(providers): update not support enable_thinking providers (#9251)

fix(providers): 更新不支持enable_thinking参数的系统提供商列表

将不支持enable_thinking参数的系统提供商明确设置为'ollama'和'lmstudio',移除之前的注释说明
This commit is contained in:
Phantom 2025-08-17 17:28:39 +08:00 committed by GitHub
parent 13a834ceaa
commit f0bd6c97fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1270,8 +1270,7 @@ export const isSupportStreamOptionsProvider = (provider: Provider) => {
)
}
// NOTE: 暂时不知道哪些系统提供商不支持该参数,先默认都支持。出问题的时候可以先用自定义参数顶着
const NOT_SUPPORT_QWEN3_ENABLE_THINKING_PROVIDER = [] as const satisfies SystemProviderId[]
const NOT_SUPPORT_QWEN3_ENABLE_THINKING_PROVIDER = ['ollama', 'lmstudio'] as const satisfies SystemProviderId[]
/**
* 使 enable_thinking Qwen3 Only for OpenAI Chat Completions API.