fix: modelscope deepseek v3.1 think mode

This commit is contained in:
kangfenmao 2025-09-02 04:11:47 +08:00
parent 1f9a8276b1
commit f271cf737c

View File

@ -2534,9 +2534,9 @@ export function isSupportedThinkingTokenModel(model?: Model): boolean {
// Specifically for DeepSeek V3.1. White list for now // Specifically for DeepSeek V3.1. White list for now
if (isDeepSeekHybridInferenceModel(model)) { if (isDeepSeekHybridInferenceModel(model)) {
return (['openrouter', 'dashscope', 'doubao', 'silicon', 'nvidia', 'ppio'] satisfies SystemProviderId[]).some( return (
(id) => id === model.provider ['openrouter', 'dashscope', 'modelscope', 'doubao', 'silicon', 'nvidia', 'ppio'] satisfies SystemProviderId[]
) ).some((id) => id === model.provider)
} }
return ( return (