mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
* feat(reasoning): add default reasoning effort option and update i18n
Add 'default' reasoning effort option to all reasoning models to represent no additional configuration. Update translations for new option and modify reasoning logic to handle default case. Also update store version and migration for new reasoning_effort field.
Update test cases and reasoning configuration to include default option. Add new lightbulb question icon for default reasoning state.
* fix(ThinkingButton): correct isThinkingEnabled condition to exclude 'default'
The condition now properly disables thinking when effort is 'default' to match intended behavior. Click thinking button will not switch reasoning effort to 'none'.
* refactor(types): improve reasoning_effort_cache documentation
Update comments to clarify the purpose and future direction of reasoning_effort_cache
Remove TODO and replace with FIXME suggesting external cache service
* feat(i18n): add reasoning effort descriptions and update thinking button logic
add descriptions for reasoning effort options in multiple languages
move reasoning effort label maps to component for better maintainability
* fix(aiCore): handle default reasoning_effort value consistently across providers
Ensure consistent behavior when reasoning_effort is 'default' or undefined by returning empty object
* test(reasoning): fix failing tests after 'default' option introduction
Fixed two test cases that were failing after the introduction of the 'default'
reasoning effort option:
1. getAnthropicReasoningParams test: Updated to explicitly set reasoning_effort
to 'none' instead of empty settings, as undefined/empty now represents
'default' behavior (no configuration override)
2. getGeminiReasoningParams test: Similarly updated to set reasoning_effort
to 'none' for the disabled thinking test case
This aligns with the new semantic where:
- undefined/'default' = use model's default behavior (returns {})
- 'none' = explicitly disable reasoning (returns disabled config)
|
||
|---|---|---|
| .. | ||
| main | ||
| preload | ||
| renderer | ||