Commit Graph

2249 Commits

Author SHA1 Message Date
1600822305
df7bf152bd 添加了 TTS 相关服务并更新了设置 2025-04-11 16:56:20 +08:00
1600822305
3069e35688 TTS语音通话功能 2025-04-11 16:02:17 +08:00
1600822305
a4eeea6732 修复部分问题 2025-04-11 04:00:42 +08:00
1600822305
644995dd76 修复部分问题 2025-04-11 03:53:14 +08:00
1600822305
1f967765e4 修复部分问题 2025-04-11 03:50:12 +08:00
1600822305
ff95670f25 修复zhcn 2025-04-11 03:46:20 +08:00
1600822305
a325ec091d 修复部分问题 2025-04-11 03:42:16 +08:00
1600822305
a86b4ba404 添加了 语音通话功能 相关服务并更新了设置 2025-04-11 03:37:16 +08:00
1600822305
f6cc733421 123 2025-04-11 00:53:50 +08:00
1600822305
14fe1036c9 Merge branch '1600822305-patch-2' of https://github.com/CherryHQ/cherry-studio into 1600822305-patch-2 2025-04-11 00:44:15 +08:00
1600822305
fe69d5c287 添加了 TTS 相关服务并更新了设置 2025-04-11 00:43:13 +08:00
1600822305
21e195c51a
Update ASRServerService.ts 2025-04-10 17:54:35 +08:00
1600822305
4ea385f481
Update ASRServerService.ts 2025-04-10 17:48:08 +08:00
1600822305
1b06fa11b0
Update ASRService.ts 2025-04-10 17:47:23 +08:00
1600822305
688d3f3fb5 修复 2025-04-10 17:44:39 +08:00
kangfenmao
56d9f6a8a0 refactor(ipc): streamline IPC handler definitions and improve import organization
- Simplified the registration of IPC handlers for the search window by removing unnecessary async/await syntax.
- Improved import organization by removing duplicate import statements for ASRServerService.
2025-04-10 17:38:57 +08:00
1600822305
9267583c58 1 2025-04-10 16:25:48 +08:00
1600822305
44e4936baf 666 2025-04-10 16:20:36 +08:00
1600822305
eb75884b57 冲突6666 2025-04-10 16:17:46 +08:00
1600822305
7b76fb611b ipc 2025-04-10 16:01:28 +08:00
1600822305
e7ae2bbe64 冲突ipc 2025-04-10 15:58:24 +08:00
kangfenmao
dba84bb04e Merge branch 'main' into 1600822305-patch-2
# Conflicts:
#	src/main/ipc.ts
2025-04-10 13:52:15 +08:00
kangfenmao
09a6633370 refactor: Clean up code formatting and improve readability across multiple files
- Standardized code formatting by removing unnecessary line breaks and ensuring consistent use of semicolons.
- Enhanced readability in various components, including ASRButton, TTSButton, and TTSService, by restructuring code blocks and improving indentation.
- Updated comments for clarity and consistency in ASRService and TTSService.
- Adjusted import statements for better organization in several files, including TTSStopButton and ASRSettings.
- Improved the handling of promises and asynchronous functions for better code flow.
2025-04-10 13:48:29 +08:00
kangfenmao
e1f255048e feat(models): add Qiniu models to SYSTEM_MODELS and update migration logic to initialize provider models
- Introduced new models for the Qiniu provider in SYSTEM_MODELS.
- Updated migration logic to populate Qiniu provider models if they are empty during state initialization.
2025-04-10 13:42:03 +08:00
kangfenmao
8a579be4c1 refactor(after-pack): rename function to keepArchNodeFiles and update logic for retaining architecture-specific node modules
close PR#4522
2025-04-10 13:15:41 +08:00
kangfenmao
efcffbaa30 feat(websearch): enhance web search provider settings and localization
- Updated web search provider settings to include API key and free status indicators.
- Improved localization for English, Japanese, Russian, Chinese, and Taiwanese languages to reflect new API key and free status fields.
- Refactored web search provider management to prevent duplicates and streamline provider addition during state migration.
- Adjusted UI components to conditionally render based on provider type, enhancing user experience.
2025-04-10 13:07:55 +08:00
1600822305
5b819221b3 冲突 2025-04-10 12:49:57 +08:00
1600822305
4e5e7f6248 冲突 2025-04-10 12:49:14 +08:00
1600822305
fc77db3b91 ASR-TTS 2025-04-10 12:30:22 +08:00
LiuVaayne
f9c6bddae5
feat(search): support using google as default search provider (#4569)
* feat(websearch): implement search window functionality and enhance search service

* feat(DefaultProvider): integrate @mozilla/readability for improved content parsing

* Add LocalSearchProvider for web page scraping

AI: Change `provider` from private to protected in BaseWebSearchProvider and implement LocalSearchProvider for web searching with browser-based content extraction.

* Add web search provider management features

Implement addWebSearchProvider function to prevent duplicates,
automatically load default providers on initialization, fix
LocalSearchProvider implementation, and update local provider
identification logic.

* Improve web search with specialized search engine parsers

Add dedicated parsers for Google, Bing, and Baidu search results,
replacing the generic URL extraction approach. Enhance page loading
with proper wait mechanisms and window cleanup. Remove DuckDuckGo
provider as it's no longer supported.

* Simplify DefaultProvider to unimplemented placeholder

* Remove default search engine from initial state

* Improve web search providers config and display

Add configuration for local search providers, remove empty apiKey fields,
and enhance the UI by sorting providers alphabetically and showing
whether they require an API key.

* Add stderr logging for MCP servers

* Make search window initially hidden
2025-04-10 12:29:09 +08:00
司马琦昂
5e086a1686 fix: O3 config text-embedding-3-small duplicate 2025-04-10 10:20:34 +08:00
fullex
0db4c8b475
fix: [mac] issues related to fullscreen mode (#4618) 2025-04-10 09:02:53 +08:00
自由的世界人
d5fcef39d3
feat: add model provider logo upload (#4408)
* feat: add model provider logo upload

* Update index.tsx

* fix: upload image delete
2025-04-09 23:52:42 +08:00
1600822305
d6302bbc25 翻译 2025-04-09 20:56:27 +08:00
kangfenmao
5c44f71684 refactor(ModelList): replace FileItem with ListItem and HStack for improved layout and styling 2025-04-09 20:42:36 +08:00
1600822305
a95a2e01e0 去除边框 2025-04-09 20:17:46 +08:00
fullex
3462be2a2a fix:[mac] window level to show py input 2025-04-09 20:12:33 +08:00
1600822305
7bd8d1b1a4
Add files via upload
CSP策略
2025-04-09 18:50:43 +08:00
kangfenmao
c33d14feb5 refactor: Update TTS settings and improve localization
- Changed the title in the Chinese localization from "语音合成设置" to "语音设置" for clarity.
- Adjusted the layout of the TTSSettings component, including margin and flex properties for better alignment.
- Enhanced the help text section to improve readability and structure.
- Updated comments in settings.ts for better understanding of default values.
2025-04-09 18:14:28 +08:00
kangfenmao
7337c44053 refactor: Improve TTSSettings component structure and code readability
- Organized imports for better clarity.
- Enhanced the formatting of the TTSSettings component for improved readability.
- Updated various function calls and state management to ensure consistency.
- Refactored the handling of voice and model additions/removals for better maintainability.
- Cleaned up unnecessary comments and improved the overall structure of the code.
2025-04-09 18:04:55 +08:00
kangfenmao
e5dbf47b9b Merge branch 'main' into 1600822305-patch-2
# Conflicts:
#	src/renderer/src/store/settings.ts
2025-04-09 18:01:54 +08:00
1600822305
8444a45f78
Update settings.ts 2025-04-09 17:51:48 +08:00
1600822305
e3d2e6189f
Update MessageMenubar.tsx 2025-04-09 17:41:36 +08:00
Teo
a0be911dc9
feat: Optimize QuickPanel (#4604)
* feat(QuickPanel): enhance close action options and improve input handling

- Added 'enter_empty' as a new close action option for QuickPanel.
- Refactored input handling to include a delay before clearing search text after panel closure.
- Updated keyboard event handling to prevent default actions for specific keys.
- Improved styling for selected and focused states in QuickPanel components.
- Enhanced AttachmentPreview to utilize a separate FileNameRender component for better readability and functionality.

* feat(AttachmentPreview): enhance file icon rendering and styling

* feat(CustomTag): add closable functionality and improve styling

- Enhanced CustomTag component to support closable tags with an onClose callback.
- Updated styling for better visual integration and added hover effects for the close icon.
- Refactored usage of CustomTag in AttachmentPreview, KnowledgeBaseInput, and MentionModelsInput components for consistency.

* feat(SelectModelPopup, QuickPanel): update tag component and enhance search functionality

* feat(Inputbar, SettingsTab): add enable quick panel triggers setting and update translations

* feat(QuickPanel): integrate color library for dynamic styling and update package dependencies
2025-04-09 17:00:34 +08:00
magicdmer
f7f7d2bde8
fix: 解决聊天页面图片复制失败的问题和点击编辑回复的时候,不显示图片url的问题 (#4496)
* fix: 解决聊天页面图片复制失败的问题和点击编辑回复的时候,不显示图片url的问题

* fix: 解决chat模式,gemini-2.0-flash-exp-image-generation返回base64图片,无法复制的问题

* fix(MessageImage): Update the image copying feature to process base64 and URL formatted images based on their type

---------

Co-authored-by: magicdmer <magicdmer@163.com>
Co-authored-by: eeee0717 <chentao020717Work@outlook.com>
2025-04-09 16:23:25 +08:00
fullex
10efa444bf
fix: missing ExportMenuOptions in persist leads to useSelector re-render a lot (#4593)
* fix: missing ExportMenuOptions in persist leads to useSelector re-render

* chore: cleanup
2025-04-09 13:54:15 +08:00
LiuVaayne
24e28b86cf
feat(mcp): support MCP by prompt (#4476)
* feat: implement tool usage handling and system prompt building for AI providers

* refactor: streamline tool usage handling and remove unused code in OpenAIProvider and formats

* refactor: simplify tool usage handling in Anthropic and Gemini providers, and update prompt instructions

* refactor: remove unused function calling model checks and simplify MCP tools handling in Inputbar

* hidden tool use in message

* revert  import

* Add idx parameter to parseAndCallTools for unique tool IDs
2025-04-09 11:22:14 +08:00
Hao He
fa66d048d7
feat(AssistantsTab): add sorting functionality by Pinyin and update translations (#4507) 2025-04-09 09:23:11 +08:00
Vaayne
fe7a392116 fix(NpxSearch): update SearchResult type to use MCPServer type definition 2025-04-09 09:21:35 +08:00
Vaayne
c883fd85d8 feat(MCP): add StreamableHTTPClientTransport and update server type handling 2025-04-09 09:21:35 +08:00