mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-22 08:21:34 +08:00
fix(reasoning): thinking control for ds v3.1 of tencent platform (#10333)
* feat(reasoning): add Hunyuan and Tencent TI thinking config * fix: style * fix(reasoning): merge same type providers
This commit is contained in:
parent
bf2ffb7465
commit
09e9b95e08
@ -112,6 +112,8 @@ export function getReasoningEffort(assistant: Assistant, model: Model): Reasonin
|
|||||||
return {
|
return {
|
||||||
enable_thinking: true
|
enable_thinking: true
|
||||||
}
|
}
|
||||||
|
case SystemProviderIds.hunyuan:
|
||||||
|
case SystemProviderIds['tencent-cloud-ti']:
|
||||||
case SystemProviderIds.doubao:
|
case SystemProviderIds.doubao:
|
||||||
return {
|
return {
|
||||||
thinking: {
|
thinking: {
|
||||||
|
|||||||
@ -93,7 +93,17 @@ 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 (
|
return (
|
||||||
['openrouter', 'dashscope', 'modelscope', 'doubao', 'silicon', 'nvidia', 'ppio'] satisfies SystemProviderId[]
|
[
|
||||||
|
'openrouter',
|
||||||
|
'dashscope',
|
||||||
|
'modelscope',
|
||||||
|
'doubao',
|
||||||
|
'silicon',
|
||||||
|
'nvidia',
|
||||||
|
'ppio',
|
||||||
|
'hunyuan',
|
||||||
|
'tencent-cloud-ti'
|
||||||
|
] satisfies SystemProviderId[]
|
||||||
).some((id) => id === model.provider)
|
).some((id) => id === model.provider)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user