cherry-studio/scripts
Phantom da96459bff
feat(ProviderSettings): add more api options for non-system providers (#7794)
* feat(ProviderSettings): Move compatibility mode settings to AddProviderPopup

* feat(provider): 添加兼容性提示工具组件

为不支持数组格式用户消息的API添加兼容性提示工具组件,并在多语言文件中新增相关翻译

* refactor(ProviderSetting): 重构提供商兼容模式设置,将选项移至设置页面并添加提示

移除添加提供商弹窗中的兼容模式选项,将其移至提供商设置页面
为兼容模式添加提示说明,优化用户体验

* docs(i18n): 为多语言文件添加misc翻译项

* refactor(组件): 移除InfoTooltip组件并直接使用Tooltip

* chore(scripts): 优化翻译提示词

* feat(i18n): 为兼容模式添加多语言标签和提示信息

为不支持数组格式用户消息的API添加兼容模式的多语言标签和提示信息,并更新相关组件引用

* feat(provider): 添加对stream_options和developer_role的支持

- 在Provider类型中新增isSupportStreamOptions和isSupportDeveloperRole字段
- 新增ApiOptionsSettings组件用于配置API选项
- 实现stream_options和developer_role的开关功能
- 添加相关i18n翻译

* feat(provider): 添加对数组格式 message content 的支持

- 新增数组内容支持配置项及国际化文案
- 重构 provider 类型定义,将支持属性改为不支持属性
- 添加数组内容支持判断逻辑
- 更新迁移逻辑以处理新字段

* refactor(provider): 优化API选项设置界面和类型定义

重构API选项设置组件,使用InfoTooltip显示帮助信息
调整i18n文案结构,分离标签和帮助文本
添加过渡效果更新provider状态

* fix(providers): 修复提供者功能支持判断逻辑

修改提供者功能支持判断逻辑,优先检查提供者的特定属性

* refactor(openai): 调整导入语句顺序并移除重复导入

* fix(ProviderSettings): 当options为空时返回null避免渲染错误

* fix(ProviderSettings): 当provider为系统时隐藏API选项设置

当provider标记为系统时,不应显示API选项设置,避免用户误操作

* fix(迁移): 修复内置提供商迁移逻辑并更新API选项设置

迁移旧配置时,修正内置提供商的识别逻辑,确保已删除的内置提供商标记正确
同时更新所有提供商的API选项设置

* refactor(provider): 重构系统提供商判断逻辑

使用 INITIAL_PROVIDERS 列表来判断系统提供商,替代直接使用 isSystem 字段
添加 SystemProvider 类型并更新相关类型定义
修复多处使用 isSystem 字段的判断逻辑

* refactor(store): 重命名INITIAL_PROVIDERS为SYSTEM_PROVIDERS以更准确描述用途

* feat(i18n): 添加i18n

* refactor(ProviderSettings): 移除SYSTEM_PROVIDERS依赖并简化菜单逻辑

处理遗留的系统提供商数据,不再依赖已删除的SYSTEM_PROVIDERS常量

* fix(ProviderSettings): 修复提供商头像显示逻辑,优先使用获取到的logo

当获取到提供商logo时直接显示,不再检查是否为系统提供商
2025-08-03 23:51:33 +08:00
..
__tests__ chore(i18n): Separate check-i18n and sync-i18n; add auto sort i18n (#8206) 2025-07-19 23:26:40 +08:00
after-pack.js refactor: remove mac ocr 2025-07-31 21:51:16 +08:00
artifact-build-completed.js chore(dependencies): update electron-builder to 26.0.15 (#5651) 2025-05-04 18:34:43 +08:00
auto-translate-i18n.ts feat(ProviderSettings): add more api options for non-system providers (#7794) 2025-08-03 23:51:33 +08:00
build-npm.js build: Add support for Windows ARM64 platform (#3431) 2025-04-06 09:35:08 +08:00
check-custom-exts.ts chore(languages): update languages with a script (#8445) 2025-07-24 15:57:09 +08:00
check-i18n.ts chore(i18n): forced nested structure to support i18n ally (#8457) 2025-07-25 17:36:04 +08:00
cloudflare-worker.js revert: cloudflare-worker.js 2024-12-24 17:38:30 +08:00
notarize.js fix: clean up code (#5851) 2025-05-11 00:37:01 +08:00
sort.ts chore(i18n): Separate check-i18n and sync-i18n; add auto sort i18n (#8206) 2025-07-19 23:26:40 +08:00
sync-i18n.ts chore(i18n): improve i18n translation scripts (#8441) 2025-07-24 10:21:48 +08:00
update-i18n.ts chore(i18n): improve i18n translation scripts (#8441) 2025-07-24 10:21:48 +08:00
update-languages.ts chore(languages): update languages with a script (#8445) 2025-07-24 15:57:09 +08:00
utils.js build: Add support for Windows ARM64 platform (#3431) 2025-04-06 09:35:08 +08:00
version.js chore(version): 0.3.7 2024-07-26 11:04:02 +08:00
win-sign.js build: add win-sign script 2025-05-22 19:33:40 +08:00