Commit Graph

2325 Commits

Author SHA1 Message Date
1600822305
dac4d4906e Update yarn.lock 2025-04-14 18:20:33 +08:00
1600822305
c6d9223e5c Update yarn.lock 2025-04-14 18:17:55 +08:00
1600822305
4223737bde Merge branch 'main' into 1600822305-patch-2 2025-04-14 18:11:50 +08:00
kangfenmao
56797bc2c6 chore(version): 1.2.4 2025-04-14 17:30:41 +08:00
LiuVaayne
0a2c9037e7 feat: mcp custom headers (#4800)
* Add support for custom HTTP headers in MCP servers

Allow users to configure custom HTTP headers for SSE and streamable HTTP
MCP server connections. This enables authentication and other API
requirements.

* Add custom headers i18n strings
2025-04-14 17:17:13 +08:00
LiuVaayne
a6374abcb9 Feat/mcp tool response support image (#4787)
* Add typed MCPCallToolResponse interface and format converters

The commit introduces a structured response type for MCP tool calls with
proper handling for different content types (text, image, audio). It adds
provider-specific converter functions to transform tool responses into
the appropriate message format for OpenAI, Anthropic, and Gemini.

* Support vision models in tool call responses

Add isVisionModel parameter to tool response formatters to conditionally
handle content based on model capabilities. Non-vision models now receive
JSON stringified content, while vision models get proper multimedia parts.
2025-04-14 17:16:42 +08:00
kangfenmao
6e16ed3561 feat: add after-build script for renaming files and updating latest.yml
- Introduced a new script to rename files with spaces in the 'dist' directory.
- Updated 'latest.yml' to remove the first file entry and adjust paths accordingly.
- Enhanced build process for Windows to include the new script execution.
- Added js-yaml dependency for YAML file manipulation.
2025-04-14 17:14:45 +08:00
kangfenmao
8a25f94fbc fix: emoji icon empty 2025-04-14 17:10:55 +08:00
Teo
eaa03375f4 feat: update icons in Inputbar and related components for consistency 2025-04-14 16:06:17 +08:00
fullex
e96e6412a0 fix: quickAssistant transalte not work by key select 2025-04-14 10:31:52 +08:00
kangfenmao
1954d94b78 feat: enhance styling and icon consistency across components 2025-04-14 09:34:13 +08:00
kangfenmao
650111ab74 feat(migrate, websearch): enable enhanceMode in websearch and update migration logic 2025-04-14 09:34:13 +08:00
1600822305
8b9d3a2e56 翻译 2025-04-14 00:16:56 +08:00
fullex
9f8acd4ed8 fix: mac fullscreen changed when switch back through clicking dock icon 2025-04-13 23:34:55 +08:00
fullex
5410163667 fix: numpad enter not work 2025-04-13 23:34:20 +08:00
Reamd7
4e00a21211 fix(MCPService): 增加获取系统 PATH 的功能, 修复 process.env.PATH 无法获取系统PATH的问题 (#4766) 2025-04-13 22:45:02 +08:00
LiuVaayne
b29d263f17 feat: Enhance web search with XML-based query extraction (#4770)
Add support for webpage summarization, direct URL references, and
better query processing using a structured XML format. Move web content
fetching to dedicated utility functions with improved error handling
and format options.
2025-04-13 22:42:14 +08:00
kangfenmao
8e18f1f517 fix(Sidebar): rename Sparkle icon to Sparkles for consistency 2025-04-13 22:05:32 +08:00
africa1207
3531cbe641 feat: 优化webdav备份文件恢复管理功能 (#4699)
* feat: 优化webdav备份文件恢复管理功能

* fix: 恢复和删除操作更改为文字而非图标

* feat: 统一坚果云与webdav备份恢复功能
2025-04-13 21:52:16 +08:00
kangfenmao
a8e9affb86 chore: update yarn.lock and enhance localization in Japanese, Russian, and Traditional Chinese
- Removed unused dependencies from yarn.lock.
- Added new localization strings for emoji filtering and TTS progress bar in Japanese, Russian, and Traditional Chinese.
- Improved layout and styling in TTSSettings and VoiceCallSettings components.
2025-04-13 21:50:00 +08:00
kangfenmao
45cf39fb4e Merge branch 'main' into 1600822305-patch-2
# Conflicts:
#	src/renderer/src/pages/home/Messages/MessageContent.tsx
#	src/renderer/src/pages/settings/SettingsPage.tsx
#	src/renderer/src/store/settings.ts
2025-04-13 21:34:30 +08:00
kangfenmao
39f1d537e4 style(Sidebar, Messages, ModelSettings): update icon styles and clean up unused imports
- Added 'icon' class to various icons in Sidebar for consistent styling.
- Removed unused loading state from Messages component.
- Cleaned up iconStyle variable in ModelSettings as it was no longer needed.
2025-04-13 21:29:48 +08:00
LiuVaayne
97c7707ddf feat(MCP): add resource management features and localization support (#4746)
* feat(MCP): add resource management features and localization support

* feat(MCP): enhance resource handling with improved error messages and response structure

* fix(MCPToolsButton): add missing useEffect import for resource handling

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-04-13 21:08:57 +08:00
Teo
70be2c5b5b hotfix: 优化一些issue反馈 (#4758)
feat(Inputbar, Settings): add backspace delete model functionality and localization updates

- Implemented a new setting to enable backspace key functionality for deleting models/attachments in the Inputbar.
- Added corresponding localization strings for English, Japanese, Russian, Chinese (Simplified and Traditional) in the i18n files.
- Updated the QuickPanelBody styling to inherit border-radius.
- Migrated the new setting to the state management for persistence.

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-04-13 21:07:00 +08:00
kangfenmao
e66696cd86 feat: new icon style 2025-04-13 21:03:19 +08:00
bjl101501
53702a138f docs(README): Add 仿Claude样式主题 (#4751)
* Update README.md

* Add 仿Claude样式主题 in README.zh.md

* Add 仿Claude样式主题 in README.ja.md
2025-04-13 20:40:13 +08:00
George·Dong
7d27ef01a7 fix: Update dashscoop provider configuration and enhance model editing functionality (#4748)
* fix(provider config): update dashscoop new links

* feat(EditModelsPopup): add grouping function for bailian

* fix(isWebSearchModel): Correctly handle the priority of manually setting model support for web search
2025-04-13 20:38:25 +08:00
kangfenmao
0aac88bb92 fix(EditModelsPopup, ModelList): adjust avatar size and streamline model description rendering
- Reduced avatar size in ModelList for better alignment.
- Simplified rendering logic for model descriptions in EditModelsPopup to enhance readability.
2025-04-13 13:34:48 +08:00
kangfenmao
78269b4fa7 style(MCPSettings): adjust layout and spacing in NpxSearch and MainContainer
- Updated MainContainer to use flex display for better layout.
- Increased margin in NpxSearch component for improved spacing.
- Adjusted ResultList to use two columns instead of three for better content presentation.
2025-04-13 11:00:07 +08:00
kangfenmao
cecfe5fdd9 feat(Settings): implement assistant icon type selection and localization updates 2025-04-13 10:45:47 +08:00
Teo
c733166a0f feat(AssistantItem): add emoji support and improve icon display logic 2025-04-13 10:01:03 +08:00
Teo
f14e255464 refactor(AgentPage): Refactor AgentPage UI (#4737)
* refactor(AgentPage): Refactor AgentPage UI

* style(AgentCard): update HeaderInfoEmoji styling for improved layout and visual consistency

* fix(AgentCard): conditionally render HeaderInfoEmoji to prevent rendering of undefined

* feat(AgentsPage): add handleAddAgent function to streamline agent addition process

* style(AgentsPage): remove unnecessary whitespace in title rendering
2025-04-13 09:58:46 +08:00
王叔叔
8c62d91ea9 Update LICENSE (#4744) 2025-04-13 08:00:41 +08:00
purefkh
16c7b8f9d7 fix(UI): Correct citation tooltip style in light theme (#4738) 2025-04-12 21:48:14 +08:00
kangfenmao
db46407de7 chore(version): 1.2.3 2025-04-12 20:47:08 +08:00
kangfenmao
b2ede829e9 feat(Ipc): add architecture information and update check logic for Windows arm64 2025-04-12 20:42:20 +08:00
1600822305
3ac8fe6861 Merge branch 'main' into 1600822305-patch-2 2025-04-12 20:25:19 +08:00
kangfenmao
276b3e66bf fix(SettingsTab): refine reasoning effort handling for Grok models
fix: #4735
2025-04-12 20:23:31 +08:00
kangfenmao
5db7cc6d70 feat(MCPSettings): enhance MCP server management and localization updates
- Added a new SVG icon for npm in the MCP settings.
- Introduced a custom hook `useMCPServer` for retrieving a specific MCP server by ID.
- Updated localization files to include new error messages for tool and prompt loading in English, Japanese, Russian, and Chinese.
- Refactored MCP settings components for improved navigation and state management, including the use of React Router for routing.
- Enhanced the Npx search functionality and UI for better user experience.
2025-04-12 19:47:36 +08:00
1600822305
1c89e823ee Delete src/renderer/src/i18n/locales/zh-cn.json.bak 2025-04-12 19:11:32 +08:00
1600822305
19dcd0b17c 添加了 TTS 相关服务并更新了设置 2025-04-12 18:53:47 +08:00
kangfenmao
0c9ea43170 style(SelectModelPopup): update background color animation for improved visual consistency 2025-04-12 17:02:17 +08:00
kangfenmao
6203033706 style(QuickPanel): update font sizes and line height for improved readability 2025-04-12 16:41:39 +08:00
kangfenmao
7d51d16f57 refactor(license.html): update structure and styling for improved readability and consistency 2025-04-12 16:41:26 +08:00
kangfenmao
20cbdc61e5 Revert "fix(ChatNavigation): improve navigation button collapse functionality"
This reverts commit 86e174d27a.
2025-04-12 16:12:34 +08:00
kangfenmao
5ff90b7183 feat(NewContextButton): add styled container for responsive design
- Introduced a styled container to the NewContextButton component to hide it on smaller screens (max-width: 800px).
- Ensured the tooltip and button functionality remain intact while enhancing the component's layout.
2025-04-12 16:11:00 +08:00
kangfenmao
f99c21d850 refactor(Inputbar, Messages): simplify clear topic functionality and improve message display logic
- Removed unused QuestionCircleOutlined icon and Popconfirm from Inputbar, replacing it with a direct button click for clearing topics.
- Refactored message display logic in Messages component to enhance clarity and maintainability, while preserving existing functionality.
2025-04-12 16:07:40 +08:00
kangfenmao
197190235b feat(CustomCollapse): enhance component with customizable styles and improve usage in EditModelsPopup 2025-04-12 15:57:50 +08:00
LiuVaayne
d06d221141 Feat/improve UI mcp settings (#4717)
* feat(MCPSettings): implement server selection and navigation with back button

* chore(ui)

* chore(UI): npx search padding

* feat(NpxSearch): add server selection and navigation; update styles

---------

Co-authored-by: eeee0717 <chentao020717Work@outlook.com>
2025-04-12 15:31:52 +08:00
王叔叔
f2651ffbbd docs: Update LICENSE (#4723) 2025-04-12 15:31:33 +08:00