mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
|
Some checks failed
Auto I18N Weekly / Auto I18N (push) Has been cancelled
* refactor(types): rename OpenAISummaryText to OpenAIReasoningSummary for clarity * refactor: move OpenAISettingsGroup to independent folder * refactor(OpenAISettingsGroup): extract settings components into separate files Move ReasoningSummarySetting, ServiceTierSetting and VerbositySetting into individual components to improve code organization and maintainability * feat(stream-options): add stream options configuration for OpenAI completions add includeUsage option to control token usage reporting in streamed responses update provider config and settings UI to support new stream options add migration for existing providers to set default stream options extend toOptionValue utility to handle boolean values * refactor(stream-options): move stream options includeUsage to settings store - Remove streamOptions from Provider type and move includeUsage to settings.openAI - Update migration to initialize streamOptions in settings - Modify providerToAiSdkConfig to read includeUsage from settings - Update StreamOptionsSetting component to use settings store * feat(i18n): add missing translations for 'on' and stream options Add translations for the 'on' state and stream options including token usage in multiple languages * docs(select): update docs * test(providerConfig): add tests for stream options includeUsage add test cases to verify includeUsage stream option behavior for OpenAI provider * Update src/renderer/src/i18n/translate/ru-ru.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/renderer/src/pages/home/Tabs/components/OpenAISettingsGroup/VerbositySetting.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/renderer/src/utils/select.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * test(select): add tests for toOptionValue and toRealValue functions * fix(providerConfig): handle undefined streamOptions in openAI settings Prevent potential runtime errors by safely accessing nested streamOptions properties * test(providerConfig): add tests for Copilot provider includeUsage settings * fix(OpenAISettingsGroup): handle potential undefined streamOptions in selector * docs(aiCoreTypes): add comment for OpenAICompletionsStreamOptions * refactor(select): improve type safety in toOptionValue function Use Exclude to prevent string literals from overlapping with special values --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||
| traceWindow.html | ||