mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 20:41:30 +08:00
hotfix: gemini auto thinking (#6810)
This commit is contained in:
parent
b4de143462
commit
fe038de23d
@ -300,7 +300,11 @@ export default class GeminiProvider extends BaseProvider {
|
|||||||
const effortRatio = EFFORT_RATIO[reasoningEffort]
|
const effortRatio = EFFORT_RATIO[reasoningEffort]
|
||||||
|
|
||||||
if (effortRatio > 1) {
|
if (effortRatio > 1) {
|
||||||
return {}
|
return {
|
||||||
|
thinkingConfig: {
|
||||||
|
includeThoughts: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const { max } = findTokenLimit(model.id) || { max: 0 }
|
const { max } = findTokenLimit(model.id) || { max: 0 }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user