Commit Graph

2612 Commits

Author SHA1 Message Date
kangfenmao
1223b2689d refactor: reorganize DisplaySettings component for improved layout
- Moved the assistant icon settings to a new position within the DisplaySettings component for better user experience.
- Cleaned up the code by removing redundant sections and ensuring consistent structure in the settings layout.
2025-03-17 13:11:38 +08:00
kangfenmao
58a000558d refactor: replace console.debug with console.log for improved logging consistency
- Updated various components and services to replace console.debug statements with console.log for better visibility in logs.
- This change enhances the logging approach across the application, ensuring that important messages are consistently logged.
2025-03-17 13:10:11 +08:00
kangfenmao
f5e4e7884c feat: enhance MCPSettings with server table and clean up NpxSearch component
- Added a debug log for MCP servers in MCPSettings.
- Refactored the MCPSettings component to streamline the server table rendering.
- Removed unnecessary styles from the NpxSearch component for cleaner layout.
2025-03-17 13:07:05 +08:00
kangfenmao
7078509c82 feat: update package.json dependencies and enhance webview handling
- Removed the outdated @electron-toolkit/preload dependency and re-added it with the correct version.
- Added a new event listener in WindowService to set the preload script for webviews.
- Updated the openExternal method in preload to handle potential null values.
- Enabled node integration for webviews in the MinApp component for improved functionality.
2025-03-17 12:55:34 +08:00
kangfenmao
f17d8e73c5 feat: update iconfont and enhance DataSettings with new Obsidian icon
- Updated iconfont CSS to include a new icon for Obsidian.
- Replaced the Obsidian image with the new icon in DataSettings for improved consistency.
- Adjusted layout styles in ListItem to center icons properly.
2025-03-17 12:55:34 +08:00
LiuVaayne
ba602892e5 feat: update npm scope default value and enhance error handling in MCP tool calls (#3440) 2025-03-17 12:45:35 +08:00
africa1207
1072352e18 feat: 增加导出到obsidian功能,可选择导出路径 (#3373)
* feat: 增加导出到obsidian功能,可选择导出路径

* feat: 增加将内容导出到已有md文件

* fix: 修复日文翻译
2025-03-17 12:08:50 +08:00
kangfenmao
26b3285a4d feat: update localization strings and add EditMcpJsonPopup component
- Replaced "JSON Schema" and "Normal mode" with "Edit JSON" in localization files for English, Japanese, Russian, Simplified Chinese, and Traditional Chinese.
- Introduced a new EditMcpJsonPopup component for editing MCP server configurations in JSON format, enhancing user experience and modularity in MCPSettings.
2025-03-17 12:04:29 +08:00
kangfenmao
667e4426a5 feat: refactor IPC handlers for binary management and update localization strings
commit 97d251569690462763810270ad850ad6b0057ac9
Author: kangfenmao <kangfenmao@qq.com>
Date:   Mon Mar 17 10:24:43 2025 +0800

    feat: refactor IPC handlers for binary management and update localization strings

    - Simplified IPC handlers for checking binary existence and retrieving binary paths by removing unnecessary await statements.
    - Updated localization strings in English, Japanese, Russian, Simplified Chinese, and Traditional Chinese to change "Install Dependencies" to "Install".
    - Removed the MCPSettings component, replacing it with a new InstallNpxUv component for better management of binary installations.

commit d0f6039c7659a0f4cc97555434999c731ea07f9f
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sun Mar 16 23:52:18 2025 +0800

    feat: enhance showAddModal to pre-fill form with server details

commit dde8253dc8bdffb482b9af19a07bc89886a19d3a
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sun Mar 16 23:27:17 2025 +0800

    feat: add binary management APIs and enhance MCP service for dependency installation

commit d8fda4b7b0e238097f1811850517bd56fe0de0df
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sun Mar 16 21:57:34 2025 +0800

    fix: improve error logging in MCPService and streamline tool call response handling in OpenAIProvider

commit e7af2085a66989d9be546701e4f5308e1008cb18
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sun Mar 16 15:14:32 2025 +0800

    fix: lint

commit 2ef7d16298a1270df26974158140015b8cbd91bc
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sat Mar 15 21:11:26 2025 +0800

    feat: implement uv binary installation script and integrate with MCP service

commit d318b4e5fc8b506e6d4b08490a9e7ceffe9add80
Author: Vaayne <liu.vaayne@gmail.com>
Date:   Sat Mar 15 20:28:58 2025 +0800

    feat: add uv binary installation script and enhance MCP service command handling
2025-03-17 10:25:48 +08:00
Chen Tao
1f9acd4e48 feat(mcp): add json import 2025-03-17 08:40:38 +08:00
kangfenmao
167ad2b6f3 feat: enhance AddAssistantPopup with loading state management 2025-03-17 00:12:46 +08:00
kangfenmao
4aa04158de feat: refactor MCPSettings and add new components for server management
- Introduced a new AddMcpServerPopup component for adding and editing MCP servers, improving modularity and reusability.
- Created NpxSearch component to handle npm package searches, integrating with the existing MCPSettings for enhanced functionality.
- Updated MCPSettings to utilize the new components, streamlining the server management interface.
- Added localization support for new UI elements in multiple languages, enhancing user experience.
2025-03-16 23:47:02 +08:00
MyPrototypeWhat
ffe4912e2d feat: mcp npx list (#3409)
* feat: add npm scope search functionality in MCPSettings

- Integrated npx-scope-finder to enable searching for npm packages by scope.
- Added UI elements for inputting npm scope and displaying search results in a table format.
- Enhanced user feedback with loading indicators and messages for search results.

* feat: add key property to package formatting in MCPSettings

- Added a key property to the package formatting logic to ensure unique identification of each package in the results.

* feat: enhance MCPSettings with NPX package list localization

- Added localization support for NPX package list in English, Japanese, Russian, Simplified Chinese, and Traditional Chinese.
- Updated UI elements in MCPSettings to utilize localized strings for package list features, including title, description, and various labels.
- Improved user experience by integrating translations for package-related actions and placeholders.
2025-03-16 23:09:40 +08:00
kangfenmao
afd7f92486 feat: add server restart functionality to MCPService
- Implemented a new method to restart MCP servers, enhancing server management capabilities.
- Updated the existing server activation logic to include a restart option when necessary.
- Ensured that server state is properly managed during the restart process.
2025-03-16 21:58:36 +08:00
kangfenmao
14bcb71358 feat: add active MCP servers filtering to useMCPServers hook and update MCPToolsButton
- Introduced activedMcpServers to filter and expose only active MCP servers in the useMCPServers hook.
- Updated MCPToolsButton to utilize activedMcpServers, rendering null if no active servers are present.
2025-03-16 21:34:29 +08:00
kangfenmao
59d931cc16 refactor: improve logging messages in MCPService and clean up useMCPServers hook
- Updated logging messages in MCPService for clarity and consistency.
- Removed unused dispatch and initial server loading logic from useMCPServers hook to streamline the code.
2025-03-16 21:29:58 +08:00
kangfenmao
2e65be93c6 feat: integrate MCP server initialization into app initialization process
- Added useInitMCPServers hook to manage MCP server state and communication with the main process.
- Updated useAppInit to include useInitMCPServers for improved server management during app initialization.
2025-03-16 21:05:24 +08:00
Asurada
62dd2ecbad feat: Enhanced the experience of the model selection popup (#3407)
* feat: enhance SelectModelPopup with menu item refs and layout effect

- Added useLayoutEffect to manage scrolling behavior for keyboard navigation.
- Introduced a mechanism to assign refs to menu items for improved accessibility.
- Refactored menu item processing to support recursive rendering with refs.

* feat: update SelectModelPopup to filter out pinned models when not in search mode

- Added logic to filter out pinned models when the popup is not in search state.
- Updated dependencies in useMemo to include pinnedModels for accurate filtering.

* refactor: update SelectModelPopup to clarify model selection logic

* refactor: enhance scrolling behavior in SelectModelPopup for keyboard navigation

- Added logic to scroll to the top of the container if the first model is selected.
- Updated dependencies in useLayoutEffect to include getVisibleModelItems for accurate scrolling behavior.

* refactor: improve scrolling logic in SelectModelPopup for better keyboard navigation

- Enhanced the scrolling behavior to account for group titles when navigating with the keyboard.
- Removed dependency on getVisibleModelItems in useLayoutEffect for a more streamlined effect.
2025-03-16 20:19:03 +08:00
suyao
386ea1e7da fix: correct proxy URL parsing in ProxyManager 2025-03-16 10:27:28 +08:00
shiquda
190eea5a80 feat: add copy function for mermaid diagram 2025-03-15 19:39:50 +08:00
eeee0717
d0f3c56504 fix: websearch multiple apikeys bug 2025-03-15 19:38:44 +08:00
kangfenmao
ece72c7536 feat: emit send message event in Inputbar and clean up messages slice
- Added event emission for sending messages in the Inputbar component to enhance message handling.
- Removed redundant event emission from the messages slice to streamline the sendMessage function.
2025-03-15 18:47:02 +08:00
kangfenmao
ddb0025a86 refactor: clean up MessageMenubar and enhance message handling
- Removed unused lodash dependency and optimized message resend logic in MessageMenubar.
- Streamlined Popconfirm component for message deletion.
- Updated NewTopicButton styling for improved layout.
- Enhanced messages slice to ensure better state management and error handling.
2025-03-15 18:39:51 +08:00
kangfenmao
5374106d7e refactor: optimize Inputbar debounce logic and enhance NewTopicButton styling
- Simplified the debounce implementation in the Inputbar component by removing an unnecessary wrapper.
- Updated the NewTopicButton to utilize theme context for dynamic styling based on the current theme.
2025-03-15 16:30:51 +08:00
kangfenmao
b9f97a0de8 feat: add new topic button and update translations
- Introduced a NewTopicButton component to facilitate adding new topics.
- Updated translations for new topic functionality in English, Japanese, Russian, Simplified Chinese, and Traditional Chinese.
- Adjusted font size in TranslateButton for better UI consistency.
- Removed unused new topic shortcut from Inputbar component.
2025-03-15 16:12:02 +08:00
kangfenmao
43d63c7649 refactor: remove unused dependency from useEffect in Messages component 2025-03-15 15:21:33 +08:00
kangfenmao
40eb4e3ac7 refactor: streamline message editing and enhance error handling
- Removed unnecessary database update in useMessageOperations during message editing.
- Improved user feedback for missing original user messages by integrating localized error messages in multiple languages.
- Simplified event listener for message sending in Messages component.
- Enhanced message resend logic in messages slice to ensure proper error handling and state updates.
2025-03-15 15:11:41 +08:00
kangfenmao
a64a6f6b08 fix: lint warning 2025-03-15 15:11:41 +08:00
Vaayne
ae98b5d3d9 feat: send initial servers state to main process on MCP servers change 2025-03-15 13:50:56 +08:00
shiquda
abb65b5338 feat: some improvement to Notion export feature (#2562)
* fix: use exportTopicToNotion instead of exportMarkdownToNotion when exporting topics

* refactor: improve Notion topic export to handle multi-page topics

* feat: integrate @tryfabric/martian for Markdown to Notion block conversion

* feat: add progress message for notion exporting
2025-03-15 11:06:41 +08:00
Chizard
e18635a315 fix api url display
Fix API URL length causing display style issues
2025-03-15 11:01:37 +08:00
duanyongcheng
78100d2ce3 feat: 🎸 在顶部的模型搜索框显示固定模型的供应商 2025-03-15 00:24:16 +08:00
kangfenmao
6aa6f0efcf feat: Enhance message clearing functionality in useMessageOperations
- Updated clearTopicMessagesAction to utilize TopicManager for clearing messages.
- Improved handling of topic IDs to ensure correct message clearing based on provided or default topic ID.
2025-03-14 18:00:41 +08:00
MyPrototypeWhat
3b42c8fe9a fix: messages pause bug (#3343)
* refactor: Simplify message resend logic and enhance abort controller handling

- Updated MessageMenubar to streamline message resend functionality.
- Improved abort controller management in BaseProvider and related services.
- Adjusted sendMessage to handle both single and multiple assistant messages.
- Enhanced logging for better debugging and tracking of message flow.

* feat: Enhance message handling and queue management

- Updated Inputbar to include mentions in dispatched messages.
- Introduced appendMessage action to manage message insertion at specific positions in the state.
- Improved sendMessage logic to handle mentions and maintain message order.
- Refactored getTopicQueue to accept options for better queue configuration.

* refactor: Improve abort handling and message operations

- Refactored useMessageOperations to streamline message pausing logic.
- Enhanced abort controller in BaseProvider to handle abort events more effectively.
- Updated OpenAIProvider to utilize new abort handling mechanism.
- Adjusted fetchChatCompletion to set message status based on abort conditions.
- Improved message dispatching in sendMessage for better queue management.

* refactor: Enhance signal promise handling in BaseProvider and OpenAIProvider

- Updated signal handling in BaseProvider to use a structured signalPromise object for better clarity and management.
- Adjusted error handling in OpenAIProvider to correctly catch and throw errors from the signalPromise.
- Improved overall abort handling logic to ensure robust message operations.

* fix:lint
2025-03-14 17:57:33 +08:00
Xunjin ZHENG
704dbc601f feat: Enhance API key verification and multi-key support for web search providers (#3346)
* feat(websearch): implement API key formatting and add WebSearchApiCheckPopup for multiple keys validation

- Introduced a new WebSearchApiCheckPopup component to validate multiple API keys.
- Added formatApiKeys function to standardize API key input.
- Updated WebSearchProviderSetting to utilize the new popup for checking multiple keys.
- Enhanced error handling and user feedback for API key validation.

* feat(settings): enhance API key validation for providers and web search

- Updated ApiCheckPopup to handle both provider and web search API key validation.
- Refactored key checking logic to differentiate between provider and web search types.
- Removed the obsolete WebSearchApiCheckPopup component and integrated its functionality into ApiCheckPopup.
- Adjusted WebSearchProviderSetting to utilize the updated ApiCheckPopup for checking multiple keys.
2025-03-14 17:41:38 +08:00
eeee0717
98eff26d76 fix(websearch): add apihost check button and format apihost end without '/' 2025-03-14 14:51:25 +08:00
kangfenmao
30e831b9c8 refactor: Update message handling and improve Inputbar functionality
- Modified Inputbar to include a new resizeTextArea function for better text area management.
- Adjusted MessageGroup and MessageStream components to remove unnecessary props and streamline message handling.
- Enhanced message dispatching logic in the messages store for improved state management.
- Cleaned up unused imports and code in Message components to enhance readability and maintainability.
2025-03-14 13:41:17 +08:00
Hao He
5861068086 refactor: optimize file loader with switch-case structure
* Enhance update error logging and fix duplicate type import

- Improve error logging in AppUpdater with more detailed error information and timestamps
- Remove duplicate MCPServer type import in Inputbar component

* refactor: optimize file loader with switch-case structure
2025-03-14 13:30:21 +08:00
ousugo
31d60c856d feat(Inputbar): Add file type validation message for unsupported files
- Implemented a message notification for users when attempting to upload unsupported file types in the Inputbar component.
2025-03-14 13:20:19 +08:00
alexcodelf
560794ebb1 feat: add model Provider GPUStack 2025-03-14 13:04:03 +08:00
kangfenmao
6be8144e2d feat(i18n): Add baseUrlTooltip to multiple language files for improved user guidance 2025-03-14 12:35:56 +08:00
SuYao
ee47536565 feat(MCP): Support GLM-4-alltools (#3304)
- Added Gemma3 as a vision model.
- Improved functioncall model check logic.
- Introduced a new method to clean tool call arguments, ensuring proper formatting and extraction of parameters.
- Adjusted tool call handling in OpenAIProvider to accommodate new GLM-4-alltools model checks and argument processing.
2025-03-14 12:30:26 +08:00
Vaayne
19e2fa7c7e feat(prompts): Translate prompts to English and enhance clarity 2025-03-14 11:48:56 +08:00
ousugo
0ff8f9dd5e refactor(GeminiProvider): Enhance message handling for Gemma models 2025-03-14 11:47:03 +08:00
ousugo
2a235a2408 feat(GeminiProvider): Add isGemmaModel function and update model handling
Introduce isGemmaModel function to identify Gemma models and adjust system instruction handling in GeminiProvider based on model type. Ensure proper message formatting for Gemma models during chat initialization.
2025-03-14 11:47:03 +08:00
eeee0717
db5b611259 fix: exa return empty content 2025-03-14 11:46:32 +08:00
kangfenmao
e4b5b9ef01 feat(Inputbar): Introduce NewContextButton and refactor context handling
- Added NewContextButton component to manage new context creation with a dedicated button.
- Refactored Inputbar to utilize the new NewContextButton, improving code organization.
- Removed deprecated context shortcut handling from Inputbar.
- Enhanced MCPToolsButton visibility logic based on model type.
2025-03-14 10:54:36 +08:00
kangfenmao
c70409a7aa refactor: Update completions method signatures and enhance documentation
- Reordered parameters in completions methods across AiProvider, AnthropicProvider, GeminiProvider, and OpenAIProvider to improve consistency.
- Added detailed JSDoc comments for methods to clarify parameter usage and functionality.
- Ensured mcpTools parameter is consistently included in completions method signatures.
2025-03-14 10:44:03 +08:00
kangfenmao
d7843b23b4 feat(OpenAIProvider): Add file content extraction and enhance message handling
- Implemented a method to extract file content from messages, supporting text and document types.
- Updated message parameter handling to include file content when the model does not support files.
- Added detailed JSDoc comments for new methods and existing functionalities for better documentation.
2025-03-14 10:29:59 +08:00
Vaayne
7f7aace56e fix: enhance MCPToolResponse structure and improve argument parsing in tool calls 2025-03-14 09:36:02 +08:00
Yrom Wang
7aebd27ebf fix: tool call handling in OpenAIProvider (#2953) 2025-03-13 22:28:59 +08:00
Chris Wan
3b3ce88e49 fix(OpenAIProvider): Enhanced function arguments fault tolerance (#3267) 2025-03-13 21:40:02 +08:00
SuYao
d74e585f1f fix(models): Update function_call provider check to exclude embedding models (#3281) 2025-03-13 21:35:21 +08:00
George·Dong
da835570f9 feat(AddAgentPopup, AssistantPromptSettings): Add token count display for prompts
- Implement token counting functionality in both AddAgentPopup and AssistantPromptSettings components.
- Display the token count dynamically as the user types in the prompt text area.
- Refactor text area components to include a styled token count indicator.
2025-03-13 21:25:58 +08:00
Hao He
96cd207b1b Fix/fs-rmdir-deprecation (#3296) 2025-03-13 20:45:45 +08:00
Xat
65d7e24aef fix(settings): Change padding to margin in SettingHelpLink styling 2025-03-13 18:29:03 +08:00
George·Dong
2dcf1cf584 fix(BaseProvider, KnowledgeService): Enhance getMessageContent() & getKnowledgeBaseReferences()
- handle empty message content
2025-03-13 18:20:41 +08:00
ousugo
c70832b255 fix(TopicsTab): Ensure active topic is updated correctly on deletion
- Added a check to update the active topic only if the deleted topic is currently active, preventing potential errors in topic navigation.
2025-03-13 17:58:07 +08:00
Carter Cheng
6d0c133550 fix(ui): improve chat navigation buttons UX and fix scroll interference
This commit enhances the chat navigation buttons with a more intelligent
visibility system that prevents interference with scrolling while maintaining
easy access to navigation controls.

Key improvements:
- Replace static trigger area with dynamic cursor position tracking to allow
  unobstructed scrolling
- Show navigation buttons only when cursor is near the button area or when
  actively interacting with them
- Add throttled mouse position detection (50ms) for better performance
- Use passive scroll event listeners for smoother scrolling
- Implement smarter auto-hide behavior with 1.5s timeout when cursor leaves
  the button area

This change resolves the issue where navigation buttons would interfere with
scrolling when the cursor was in the detection area, creating a more seamless
user experience.
2025-03-13 17:56:06 +08:00
ousugo
f582b095fc fix(export): Improve error handling and success messaging for markdown export
- Added result check after saving markdown files to ensure success messages are only shown when the save operation is successful.
- Standardized error message keys for consistency.
2025-03-13 17:51:51 +08:00
MyPrototypeWhat
6a2f06ca9d fix(MessageMenubar, useMessageOperations): Enhance loading state handling
- Added loading state checks in MessageMenubar to prevent actions during loading.
- Updated useMessageOperations to await database updates for message operations.
- Improved error handling for message edits and resends to ensure proper state management.
2025-03-13 17:51:17 +08:00
suyao
002abebc12 fix(OpenAIProvider): Add type property to thinking model 2025-03-13 17:32:51 +08:00
MyPrototypeWhat
6ccfef9b7e fix:Resolve bug where clearing context was invalid 2025-03-13 16:35:09 +08:00
MyPrototypeWhat
95aa95040f fix:https://github.com/CherryHQ/cherry-studio/issues/3249
- Removed ContextMenuOverlay component and integrated its styles directly into the Dropdown component for cleaner code.
2025-03-13 14:40:04 +08:00
kangfenmao
3448bef638 fix(MCPSettings, OpenAIProvider): Update settings and content handling
- Prevent modal from closing on mask click in MCPSettings
- Ensure tool call response content is properly formatted as a string in OpenAIProvider
2025-03-13 00:43:41 +08:00
ousugo
75788ffd8e refactor(PaintingsList): Reposition new painting button
Move the NewPaintingButton component to be rendered before the DragableList and remove unnecessary margin-top styling
2025-03-13 00:03:14 +08:00
ousugo
c95da64fee feat(PaintingsStore): Modify painting addition order
Change addPainting method to use unshift instead of push, ensuring new paintings are added to the beginning of the list
2025-03-13 00:03:14 +08:00
Chris Wan
2cf842bc4f fix(MCPSettings): MCP server environment variables parsing error
If there is one or more equal (=) sign in value part, all would be lost
2025-03-13 00:02:04 +08:00
suyao
316f28488f refactor(Proxy): Improve system proxy monitoring and configuration handling 2025-03-13 00:01:17 +08:00
suyao
1bc0d32fa3 refactor(Proxy): Update proxy configuration handling 2025-03-13 00:01:17 +08:00
MyPrototypeWhat
61233fb524 fix: abortError handle 2025-03-12 20:19:48 +08:00
kangfenmao
bd98787da2 feat(ChatNavigation): Adjust navigation position based on topic settings
This reverts commit a8dd12ffe6.
2025-03-12 19:28:18 +08:00
kangfenmao
42b36e80f3 fix(MessagesService): Refine empty message filtering logic
- Update filterEmptyMessages to consider file presence
- Ensure messages with empty content and no files are filtered out
2025-03-12 19:19:02 +08:00
kangfenmao
5ed2014d72 feat(MCPService, ModelSettings): Enhance path handling and model filtering
- Add enhanced PATH generation for MCP service across different platforms
- Improve model filtering with new function calling model type
- Refactor MCP service type definitions and transport initialization
- Add platform-specific path handling for various development environments
2025-03-12 19:01:30 +08:00
ousugo
a8dd12ffe6 feat(ChatNavigation): Adjust navigation position based on topic settings
- Add dynamic positioning for navigation trigger area and container
- Integrate with useSettings hook to determine navigation position
- Support right-side topic layout by calculating navigation offset
2025-03-12 18:52:02 +08:00
Vaayne
28095b5492 fix(MCPService): Improve server addition and status update error handling; add localized error messages 2025-03-12 18:40:39 +08:00
kangfenmao
506e82bd05 refactor(MessageOperations): Remove redundant stream messages selector
- Remove unused `selectStreamMessages` selector from store
- Update `pauseMessages` hook to directly access stream messages from store state
- Simplify dependencies in `pauseMessages` callback
2025-03-12 12:00:19 +08:00
kangfenmao
d7b81b4f25 fix(AssistantsStore): Clear messages when updating topics
Modify topic update logic to reset messages array when updating topics or individual topics in the assistants store
2025-03-12 11:55:53 +08:00
kangfenmao
1e423d7f3d fix(MessageGroup): Refine grouped message display condition
Modify isGrouped logic to ensure only assistant messages are considered when determining group status
2025-03-12 11:44:27 +08:00
kangfenmao
c2c3dc9aa6 feat(MessageOperations): Add local database synchronization for message updates 2025-03-12 11:22:00 +08:00
kangfenmao
2f836d9d7a refactor(MessageOperations): Improve stream message pause and selector handling 2025-03-12 11:09:52 +08:00
kangfenmao
1c8523763b feat(UI): Enhance ListItem and DataSettings with icons and styling improvements
- Add titleStyle prop to ListItem for custom text styling
- Reduce gap in ListItem and MenuList components
- Integrate icons for DataSettings menu items
- Add Notion icon to iconfont
- Improve visual hierarchy and spacing in settings navigation
2025-03-12 09:42:24 +08:00
MyPrototypeWhat
f2ee9641c6 fix(MessageOperations): Improve message pause functionality and error handling
- Update pauseMessage method to handle both askId and messageId
- Add loading state reset when pausing messages
- Enhance error handling in providers with abort error detection
- Modify ApiService to handle aborted requests gracefully
- Add comprehensive isAbortError utility function
2025-03-12 09:19:42 +08:00
kangfenmao
7d3941991e refactor(ChatNavigation): Optimize document element retrieval and remove unnecessary useMemo
- Remove useMemo for container element
- Dynamically retrieve container element in each method
- Simplify scroll and message finding logic
- Improve performance by avoiding unnecessary memoization
2025-03-11 20:57:42 +08:00
kangfenmao
3ce0b73121 feat(Topic): Implement auto-renaming topic with enhanced logic
- Add `autoRenameTopic` function in useTopic hook
- Support automatic topic naming with or without AI summary
- Integrate with store and event system for dynamic topic renaming
- Remove local implementation of auto-rename in Messages component
2025-03-11 20:44:06 +08:00
kangfenmao
3353c15d41 feat: add function call model type 2025-03-11 19:42:46 +08:00
ruichao.hu
f5bde3924c fix(sendMessage): optimize message slicing logic
- prevents empty context when message ID isn't found in history array
2025-03-11 19:37:35 +08:00
ousugo
67aa92256d feat(OpenAIProvider): Enhance model reasoning detection and stream output handling
- Update isOpenAIReasoning method to include 'o3' model prefix
- Rename isOpenAIo1 method to isOpenAIReasoning for clarity
2025-03-11 19:36:05 +08:00
MyPrototypeWhat
3743ebcc00 fix:message_status 2025-03-11 17:56:03 +08:00
MyPrototypeWhat
93b4db26df perf: optimize/message performance (#3181)
* feat: Add message pause and resume functionality

- Implement pauseMessage and pauseMessages methods in useMessageOperations hook
- Update Inputbar to use new pauseMessages method for stopping message generation
- Remove deprecated pause-related code from ApiService and store
- Simplify message generation and pause logic across providers
- Enhance message state management with more granular control over streaming messages

* feat: Enhance topic management with sequence-based sorting and lazy loading

- Add sequence field to topics for better sorting
- Implement lazy loading mechanism for topic messages
- Modify Redux store to support per-topic loading states
- Update database schema to use sequence as an auto-incrementing primary key
- Optimize message initialization and retrieval process

* refactor(database): Enhance topic management with timestamps and upgrade logic

- Modify database schema to include createdAt and updatedAt for topics
- Add database hooks for automatic timestamp handling
- Refactor topic upgrade process to support new timestamp fields
- Remove redundant upgradesV6.ts file
- Update topic retrieval to use updatedAt for sorting
- Improve database consistency and tracking of topic modifications

* refactor: Streamline message state management and remove unused code

- Remove commented-out code in multiple components
- Delete initializeMessagesState thunk from messages store
- Simplify message sending and streaming logic
- Remove unnecessary console logs
- Optimize MessageStream component with memo
- Using loading to control message generation within a single session
- Lift the restriction on not being able to switch topics in message generation

* refactor(database): Remove version 6 database version and hooks

- Remove version 6 database schema definition
- Delete automatic timestamp hooks for topics
- Clean up unused database upgrade and hook code

* refactor(Messages): Optimize message state management and remove redundant code

- Remove duplicate imports and redundant code blocks
- Simplify message sending and streaming logic in messages store
- Enhance throttling mechanism for message updates
- Remove commented-out code and unused function parameters
- Improve error handling and loading state management
- Optimize message synchronization with database

* fix:console
2025-03-11 17:31:44 +08:00
kangfenmao
e0bb9dcc75 feat(Localization): Add toggle error message for MCP servers across languages
- Update en-us, ja-jp, ru-ru, zh-cn, and zh-tw locale files
- Add 'toggleError' translation key for MCP server settings
- Improve error handling and user feedback for server toggle actions
2025-03-11 16:46:53 +08:00
kangfenmao
9ad4cd2c49 refactor(DataSettings): Modularize settings page with dynamic menu navigation
- Split DataSettings into separate components for Markdown Export, Notion, WebDAV, and Yuque settings
- Implement dynamic menu navigation with ListItem component
- Improve code organization and readability
- Add state management for menu selection
- Enhance settings page layout and user experience
2025-03-11 16:22:48 +08:00
kangfenmao
ee23126238 refactor(Migration): Clean up MiniApp icon state removal in migration steps
- Remove redundant calls to removeMiniAppIconsFromState in migration steps
- Consolidate MiniApp icon state removal in migration version 78
- Simplify migration configuration for state updates
2025-03-11 15:33:32 +08:00
kangfenmao
95f7e437eb feat(Messages): Implement topic branching and file reference tracking
- Add support for creating new topics from message branches
- Implement file reference count update when branching messages
- Enhance EventEmitter to handle NEW_BRANCH event
- Integrate database operations for topic and file management
2025-03-11 15:08:40 +08:00
kangfenmao
8e7d07fbce refactor(Providers): Optimize tool handling and message filtering
- Move MCP tool utilities to a dedicated utils folder
- Update import paths for MCP tool functions across providers
- Add isEmpty check for tools in Anthropic provider
- Enhance message filtering in OpenAI provider with filterEmptyMessages
- Simplify tool and message preparation logic
2025-03-11 13:53:06 +08:00
kangfenmao
f743b37a39 fix(Localization): Improve Chinese translation spacing and formatting 2025-03-11 13:52:48 +08:00
kangfenmao
5cefbbcdaa refactor(MCP): Simplify IPC handlers and improve server management 2025-03-11 13:52:36 +08:00
kangfenmao
f3cdf61962 feat(AnthropicProvider, MessagesService): Add empty message filtering and stream processing improvements
- Introduce filterEmptyMessages function to remove empty messages
- Update AnthropicProvider to use filterEmptyMessages in message preparation
- Refactor stream processing with minor improvements and return statement fixes
- Simplify tool response and message handling logic
2025-03-11 13:00:04 +08:00
kangfenmao
7389e9f9e9 refactor(ChatNavigation): Optimize scroll navigation and performance
- Improve scroll navigation with memoized container reference
- Add scrollToTop and scrollToBottom utility methods
- Remove message notifications for navigation limits
- Use useCallback and useMemo for better performance
- Simplify message navigation logic
2025-03-11 12:29:04 +08:00
MyPrototypeWhat
4db4a85056 pert: Optimize/message structure (#3136)
* refactor: Simplify message operations with new useMessageOperations hook

- Introduce useMessageOperations hook to centralize message-related actions
- Remove prop drilling for message deletion and management
- Refactor MessageMenubar, MessageGroup, and Messages components to use new hook
- Remove commented-out code and simplify message state management
- Improve type safety and reduce component complexity

* feat: Enhance topic management with sequence-based sorting and lazy loading

- Add sequence field to topics for better sorting
- Implement lazy loading mechanism for topic messages
- Modify Redux store to support per-topic loading states
- Update database schema to use sequence as an auto-incrementing primary key
- Optimize message initialization and retrieval process

* refactor: Simplify message operations with new useMessageOperations hook

- Introduce useMessageOperations hook to centralize message-related actions
- Remove prop drilling for message deletion and management
- Refactor MessageMenubar, MessageGroup, and Messages components to use new hook
- Remove commented-out code and simplify message state management
- Improve type safety and reduce component complexity

* refactor(database): Enhance topic management with timestamps and upgrade logic

- Modify database schema to include createdAt and updatedAt for topics
- Add database hooks for automatic timestamp handling
- Refactor topic upgrade process to support new timestamp fields
- Remove redundant upgradesV6.ts file
- Update topic retrieval to use updatedAt for sorting
- Improve database consistency and tracking of topic modifications

* fix: Improve message loading state management and UI synchronization

- Update Inputbar to use useMessageOperations hook for loading state
- Correct topic loading state management in Redux store
- Fix loading state synchronization in sendMessage action
- Remove unnecessary commented-out code
- Enhance error handling and loading state tracking

* refactor: Streamline message state management and remove unused code

- Remove commented-out code in multiple components
- Delete initializeMessagesState thunk from messages store
- Simplify message sending and streaming logic
- Remove unnecessary console logs
- Optimize MessageStream component with memo
- Using loading to control message generation within a single session
- Lift the restriction on not being able to switch topics in message generation
2025-03-11 11:43:22 +08:00
kangfenmao
c32c6af317 feat(Models, MCP, Localization): Add Qwen to tool calling models and enhance MCP server management
- Add 'qwen' to tool calling models list
- Refactor MCP server hooks to use window.api methods
- Add 'more' translation key across localization files
- Improve MCP settings modal with window.api and window.modal methods
2025-03-11 10:32:10 +08:00
kangfenmao
5d9089ff79 refactor(MCPService): Rename MCP service file and implement comprehensive server management 2025-03-11 10:08:38 +08:00
kangfenmao
383fdfc4bc feat(ReduxService): Implement comprehensive Redux state management service for main process 2025-03-11 10:07:29 +08:00
happyZYM
aeebf005bb feat: enable one-click export for simple markdown exporting (#3137)
* feat: enable one-click export for simple markdown exporting

* feat: optimize ui for simple markdown export
2025-03-11 09:59:54 +08:00
suyao
8639333ace feat(Proxy): Implement proxy management system
- Add ProxyManager service to handle system, custom, and no proxy configurations
- Integrate proxy support for Gemini, Knowledge, and WebDav services
- Add fetch-socks and undici for advanced proxy handling
- Enhance proxy configuration with environment variable and session management
2025-03-11 09:56:40 +08:00
Vaayne
037721e9d9 fix(mcpToolUtils): Update response text to include a newline character 2025-03-11 09:55:59 +08:00
Vaayne
ad3b13352f feat(MCPService): Implement IPC communication for server management and updates 2025-03-11 09:55:59 +08:00
Vaayne
f311169e13 refactor(GeminiProvider): remove unused tool filtering logic and update tools assignment 2025-03-11 09:44:34 +08:00
kangfenmao
3fc74b71df fix(MessageContent): Prevent mutation of original message object 2025-03-10 23:01:14 +08:00
kangfenmao
c71076df04 fix(AppsPage): Improve empty state rendering for apps list 2025-03-10 22:52:19 +08:00
kangfenmao
c41d7133a6 fix(ChatNavigation): Add unique keys to navigation info messages 2025-03-10 22:39:31 +08:00
George·Dong
54b8b7dd4b feat: Add chat navigation button 2025-03-10 22:37:06 +08:00
kangfenmao
1d6a459fb4 chore: sort i18n keys 2025-03-10 22:23:11 +08:00
kangfenmao
54c95547fe refactor(Sidebar): Simplify navigation and settings routing logic 2025-03-10 22:20:52 +08:00
kangfenmao
28a3cae89f fix(TranslatePage): Disable scroll sync by default 2025-03-10 18:01:40 +08:00
kangfenmao
2446406147 refactor(LLM): Reorganize system providers and add provider reordering utility 2025-03-10 17:54:45 +08:00
ousugo
7014dee8d6 feat(Models): Add 'qvq' to vision allowed models list 2025-03-10 17:32:09 +08:00
ousugo
4f74837d81 fix: Refine special character removal in utility function 2025-03-10 17:09:33 +08:00
Chuqiao Feng
77d78b047e fix: #2957 improve topic auto renaming & remove special characters from file name when topic exported (#3132)
* fix: refine special character removal for topic auto renaming #2957

* fix: remove special characters in topic title when used as file name #2957
2025-03-10 17:09:02 +08:00
shiro-yama
68926233d4 fix: fix GeminiProvdier config tools has empty array or object make request 400 (#3090)
Co-authored-by: archer <archer@gmail.com>
2025-03-10 11:59:14 +08:00
Hao He
8710739bd5 Fix/improve file utils (#3116)
* Enhance update error logging and fix duplicate type import

- Improve error logging in AppUpdater with more detailed error information and timestamps
- Remove duplicate MCPServer type import in Inputbar component

* fix: ensure directory existence and optimize file operations
2025-03-10 11:47:09 +08:00
Vaayne
66fe274af4 fix(MCPToolsButton): Optimize useEffect dependencies for server enabling logic 2025-03-10 10:59:36 +08:00
kangfenmao
e8697cb680 refactor(MCPToolsButton): Update icon and no servers text
- Replace ToolOutlined icon with CodeOutlined
- Update no servers placeholder text to use a more specific translation key
2025-03-10 10:04:16 +08:00
kangfenmao
c081d465f2 refactor(Messages): Remove Suggestions component from Messages view 2025-03-09 22:23:23 +08:00
kangfenmao
cff3628174 fix(Messages): Improve auto-rename topic logic with message filtering 2025-03-09 22:21:07 +08:00
kangfenmao
0e8faba9b5 refactor(MessageGroupModelList): Simplify display mode toggle interaction 2025-03-09 22:08:28 +08:00
kangfenmao
44431ef8f1 fix: Improve topic context in history search and messages
Update SearchMessage and TopicMessages components to pass topic context to MessageItem, ensuring proper rendering of messages with their associated topics
2025-03-09 22:04:35 +08:00
one
daec7d4505 feat(message): add a compact style for the model list in message groups (#2962)
* feat(message): add a compact style for the model list in message groups

* refactor: use button as action rather than state

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-03-09 22:04:18 +08:00
lbc123456
3bb82694a8 fix:add State Cloud models (#2971)
* feat: 模型服务添加天翼云模型

* feat:add website

* fix: id is duplicate

---------

Co-authored-by: 李保成 <libaocheng@cndatacom.com>
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-03-09 22:02:28 +08:00
one
7a485ec6dc feat: synced scrolling for translation page 2025-03-09 21:35:32 +08:00
kangfenmao
8a4061f64a fix(MessageTools): Improve empty tool responses check
Use lodash's isEmpty for more robust null/undefined handling when checking MCP tool responses
2025-03-09 21:23:45 +08:00
自由的世界人
597da85212 fix: translate error handle (#3092) 2025-03-09 21:22:08 +08:00
kangfenmao
996e703db9 refactor(loader): Replace app.getPath with getTempDir in EpubLoader
Use the new getTempDir utility function from file.ts to generate temporary file paths, maintaining consistency with recent file path utility refactoring
2025-03-09 20:22:46 +08:00
George·Dong
aba738da03 fix: Correct MIME type for JPG images for Gemini 2.0 Pro 2025-03-09 17:37:02 +08:00
Hao He
bf931d2de7 feat(loader): optimize EpubLoader memory usage with file streams (#3074)
* Enhance update error logging and fix duplicate type import

- Improve error logging in AppUpdater with more detailed error information and timestamps
- Remove duplicate MCPServer type import in Inputbar component

* feat(loader): optimize EpubLoader memory usage with file streams

Replace in-memory arrays with file streams for EPUB processing to reduce
memory consumption when handling large e-books. Use temporary files for
chapter content, add completion logs, and ensure proper cleanup.

This prevents memory overflow issues with large EPUB files (>5MB).
2025-03-09 17:36:19 +08:00
kangfenmao
0d64965ef7 refactor: Extract file path utility functions
Move hardcoded file path generation logic to dedicated utility functions in file.ts, improving code modularity and reducing duplication across services and IPC handlers
2025-03-09 17:33:46 +08:00
kangfenmao
cf29afaa74 fix: Standardize file creation timestamp to ISO string format
Ensure consistent ISO string representation of file creation timestamps in both file utility and knowledge content upload
2025-03-09 17:28:00 +08:00
FunJim
7353edda3e feat: Enhance API Key Management in Provider Settings
- Add single key checking functionality
- Implement ability to remove individual API keys
- Improve UI with remove and check buttons for each key
- Disable actions during checking to prevent conflicts
- Add styled remove icon for key deletion
2025-03-09 17:26:07 +08:00
MyPrototypeWhat
8b155871db Fix/message refactor bug (#3087)
*  feat: add Model Context Protocol (MCP) support (#2809)

*  feat: add Model Context Protocol (MCP) server configuration (main)

- Added `@modelcontextprotocol/sdk` dependency for MCP integration.
- Introduced MCP server configuration UI in settings with add, edit, delete, and activation functionalities.
- Created `useMCPServers` hook to manage MCP server state and actions.
- Added i18n support for MCP settings with translation keys.
- Integrated MCP settings into the application's settings navigation and routing.
- Implemented Redux state management for MCP servers.
- Updated `yarn.lock` with new dependencies and their resolutions.

* 🌟 feat: implement mcp service and integrate with ipc handlers

- Added `MCPService` class to manage Model Context Protocol servers.
- Implemented various handlers in `ipc.ts` for managing MCP servers including listing, adding, updating, deleting, and activating/deactivating servers.
- Integrated MCP related types into existing type declarations for consistency across the application.
- Updated `preload` to expose new MCP related APIs to the renderer process.
- Enhanced `MCPSettings` component to interact directly with the new MCP service for adding, updating, deleting servers and setting their active states.
- Introduced selectors in the MCP Redux slice for fetching active and all servers from the store.
- Moved MCP types to a centralized location in `@renderer/types` for reuse across different parts of the application.

* feat: enhance MCPService initialization to prevent recursive calls and improve error handling

* feat: enhance MCP integration by adding MCPTool type and updating related methods

* feat: implement streaming support for tool calls in OpenAIProvider and enhance message processing

* fix: finish_reason undefined

* fix: Improve translation error handling in MessageMenubar

---------

Co-authored-by: LiuVaayne <10231735+vaayne@users.noreply.github.com>
Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-03-09 17:25:23 +08:00
kangfenmao
2813b65244 fix: Convert file created_at to ISO string format
Ensure consistent string representation of file creation timestamps across file storage and type definitions
2025-03-09 17:21:57 +08:00
kangfenmao
4f4194537d fix: Default MCP tools button state to disabled 2025-03-09 17:00:35 +08:00
kangfenmao
d04e8b578a refactor: Remove deprecated userData path update logic 2025-03-09 16:19:38 +08:00
kangfenmao
21fdf9b5b8 fix: Improve MCP tool response handling and logging
- Add more descriptive console logging for tool call responses
- Use cloneDeep when storing MCP tool responses to prevent reference issues
- Simplify upsertMCPToolResponse method calls
2025-03-09 13:37:37 +08:00
kangfenmao
529949ba58 Revert "fix(mcp): 修复了mcp无法调用功能的问题 (#3047)"
This reverts commit 4354f40fab.
2025-03-09 11:11:25 +08:00
kangfenmao
f80b512443 feat: Add support for enabled MCPs in message sending 2025-03-09 10:49:28 +08:00
kangfenmao
def0fd5d62 feat: Add "Tool Calling" localization across language files 2025-03-09 10:18:54 +08:00
juzheng
7e0ed91444 fix: file extension to lowercase when uploading 2025-03-09 10:12:57 +08:00
one
30130d5541 feat: Add health check to check all the models at one time (#2613)
* feat: Add health check to check all the models at one time

* fix: add model avatars to the health-check list

* style: Use segmented instead of switch

* fix: remove redundant timing reports

* refactor: Extract small functions

* refactor: use more hooks to make the main component clearer

* fix: mask API keys with asterisks

* refactor: split health check popup and model list

- rename ModelHealthCheckPopup to HealthCheckPopup
- add HealthCheckModelList
- add maskApiKey to utils

* refactor: compute latency in checkApi

* fix: remove unused i18n keys

* refactor: use checkModel instead of checkApi for better semantics

* fix: update comments

* refactor: extract health checking functions to services

* refactor: extract model list

* refactor: render statuses on the existing model list

* fix: reset button style on completion

* fix: disable model card while checking

- remove unused i18n keys
- better window message

* refactor: show provider name in messages

* refactor: change default values

* refactor: fully migrate model list from ProviderSetting to ModelList
2025-03-08 22:24:56 +08:00
kangfenmao
dfe11f18fa feat: Enhance SettingsTab UI with styled select components and type safety
- Replace default Select components with StyledSelect for improved visual design
- Add explicit type casting for various select onChange handlers
- Improve type safety for message style, multi-model style, code style, and other settings
- Introduce StyledSelect with custom styling for consistent UI appearance
2025-03-08 20:58:34 +08:00
George·Dong
894925a66e fix: number of context incorrect (#2653)
* fix: number of context incorrect

* feat: 优化上下文数显示样式

* fix: 上下文数显示不正确

修复无限上下文情况下,当前上下文数显示不正确的问题

* fix: slider display incorrect

* fix: Update infinity display style
2025-03-08 20:50:24 +08:00
kangfenmao
a955a7368c refactor: Optimize message handling and event management
- Introduce messagesRef to track messages without causing re-renders
- Simplify event listener management with more concise useEffect hooks
- Improve auto-rename topic logic with current messages reference
- Remove commented-out code and unused event listeners
- Enhance type safety and reduce dependency complexity
2025-03-08 20:45:28 +08:00
kangfenmao
ea4b906b88 feat: Add tool calling support for models
- Introduce ToolsCallingIcon component for tool calling models
- Add isToolCallingModel function in models config
- Update ModelTags to support showing tool calling icon
- Add tooltips to model icons for better UX
- Update Chinese localization with tool calling translation
- Modify Inputbar and SelectModelButton to accommodate new icon
2025-03-08 20:10:38 +08:00
one
f7c5d80eab feat: improve SelectModelPopup, fix model id concatenation (#2903)
* fix: correctly concatenate model id

* perf: delay model sorting

* feat: sticky provider name during model selection

* fix: model selector group title animation

* fix: add back opacity

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-03-08 17:17:47 +08:00
Yanwu
4354f40fab fix(mcp): 修复了mcp无法调用功能的问题 (#3047)
* fix(mcp): 修复了mcp无法调用功能的问题

* fix(mcp): 修复工具调用时inputSchema只读属性错误
2025-03-08 17:12:34 +08:00
Herio
869d5e4d1b Enhance update error logging and fix duplicate type import
- Improve error logging in AppUpdater with more detailed error information and timestamps
- Remove duplicate MCPServer type import in Inputbar component
2025-03-08 11:16:00 +08:00
ousugo
937e80612e fix(UX): Improve Enter key handling in PromptPopup input 2025-03-08 11:09:06 +08:00
Peter Dave Hello
3fad6cc5b3 Improve zh-tw Traditional Chinese locale 2025-03-08 06:24:39 +08:00
MyPrototypeWhat
2fe21c7d41 refactor: 重构message模块 (#2561)
* feat: Implement Redux-based message management with enhanced state handling

- Add new Redux slice for managing messages with advanced state control
- Introduce topic-specific message queues using p-queue for request management
- Refactor message sending, loading, and updating logic
- Improve error handling and state synchronization with database
- Add selectors for efficient message retrieval and state access

* feat: Implement streaming message handling in Redux store

- Add stream message support in messages slice
- Create MessageStream component for rendering streaming messages
- Update Inputbar and Suggestions components to use new Redux message sending logic
- Refactor message sending flow to use stream message management
- Improve error handling and message state management

* feat:添加StreamMessage,优化数据流展示,减少大面积rerender

* refactor: Simplify messages state management and initialization

- Refactor messages slice to use flat message array instead of separate user/assistant messages
- Add initializeMessagesState thunk to load messages from database on app startup
- Update message-related reducers to work with flat message array
- Modify MessageStream and related components to use new state structure
- Improve type safety and reduce complexity in messages state management

*  feat: add Model Context Protocol (MCP) support (#2809)

*  feat: add Model Context Protocol (MCP) server configuration (main)

- Added `@modelcontextprotocol/sdk` dependency for MCP integration.
- Introduced MCP server configuration UI in settings with add, edit, delete, and activation functionalities.
- Created `useMCPServers` hook to manage MCP server state and actions.
- Added i18n support for MCP settings with translation keys.
- Integrated MCP settings into the application's settings navigation and routing.
- Implemented Redux state management for MCP servers.
- Updated `yarn.lock` with new dependencies and their resolutions.

* 🌟 feat: implement mcp service and integrate with ipc handlers

- Added `MCPService` class to manage Model Context Protocol servers.
- Implemented various handlers in `ipc.ts` for managing MCP servers including listing, adding, updating, deleting, and activating/deactivating servers.
- Integrated MCP related types into existing type declarations for consistency across the application.
- Updated `preload` to expose new MCP related APIs to the renderer process.
- Enhanced `MCPSettings` component to interact directly with the new MCP service for adding, updating, deleting servers and setting their active states.
- Introduced selectors in the MCP Redux slice for fetching active and all servers from the store.
- Moved MCP types to a centralized location in `@renderer/types` for reuse across different parts of the application.

* feat: enhance MCPService initialization to prevent recursive calls and improve error handling

* feat: enhance MCP integration by adding MCPTool type and updating related methods

* feat: implement streaming support for tool calls in OpenAIProvider and enhance message processing

* refactor: Improve message handling and type safety in message components

- Update Message, MessageGroup, MessageStream, and MessageMenubar to require Topic prop
- Modify message sending and resending logic in MessageMenubar
- Remove commented-out code and simplify message state management
- Enhance type safety by explicitly defining prop types

* fix: finish_reason undefined

* refactor: Streamline message resending and state management

- Introduce `resendMessage` thunk for more robust message resending logic
- Update `sendMessage` to support resending existing messages
- Remove deprecated `onEditMessage` callback from MessageMenubar
- Simplify message state updates using Redux actions
- Improve type safety and reduce complexity in message handling

* refactor: Optimize message resending and event handling

- Remove deprecated `APPEND_MESSAGE` event and related callbacks
- Update `resendMessage` thunk to support mentioning new models
- Modify message state synchronization in database
- Simplify dependency arrays and remove unused event listeners
- Add migration step for initializing messages state

* refactor: Enhance message translation and suggestions handling

- Update MessageMenubar to use stream message actions for translation
- Modify Suggestions component to optimize suggestion fetching
- Remove deprecated event listeners and simplify component logic
- Memoize MessageMenubar and Suggestions components for performance
- Trigger AI auto-rename on message completion in messages slice

* refactor: Optimize message streaming with throttled updates

- Introduce throttled message update mechanism using lodash
- Improve performance by limiting Redux state updates during streaming
- Create a separate handler for response message updates
- Enhance message synchronization with database
- Prevent unnecessary re-renders and reduce computational overhead

* fix: Remove unnecessary await in message dispatch

Removes the `await` keyword from the message dispatch in Inputbar, which was causing an unnecessary async operation. Also adds a missing closing brace in the migration configuration file.

* fix: Update Redux persist configuration for messages slice

Modify store configuration to exclude 'messages' slice from persistence and remove unnecessary migration step for message state initialization

* feat: Enhance message streaming and multi-model support

- Refactor Redux messages slice to support multiple stream messages per topic
- Update MessageStream and messages slice to handle message streaming with message-specific IDs
- Implement support for multi-model message generation
- Modify queue concurrency to improve parallel message processing
- Update message selection and streaming logic to be more flexible and robust

* feat: Implement file upload handling in message sending

- Add FileManager service integration for file uploads in Inputbar
- Modify sendMessage action to use uploaded file references
- Update messages slice to conditionally dispatch messages during resend

*  feat(MCP): add support for enabling/disabling MCPServers per message (#2989)

*  feat: add MCP servers in chat input

- Introduce MCPToolsButton component for managing MCP servers
- Add new icon for MCP server tools in iconfont.css
- Update Inputbar to include MCP tools functionality
- Add toggle functionality for enabling/disabling MCP servers
- Implement styled dropdown menu for server selection
- Add necessary type imports and useState for MCP server management

*  feat: add support for enabling/disabling MCPServers per message (main)

- Added `enabledMCPs` property to the `Message` type to track enabled MCPServers.
- Modified `MCPToolsButton` to enable all active MCPServers by default using a new `enableAll` state.
- Introduced `filterMCPTools` utility to filter tools based on enabled MCPServers.
- Updated `AnthropicProvider`, `GeminiProvider`, and `OpenAIProvider` to filter tools using `filterMCPTools`.
- Enhanced `Inputbar` to include `enabledMCPs` in the message payload when set.

*  feat(MCP): add enabledMCPs parameter to sendMessage action

- Update sendMessage action type to include optional enabledMCPs parameter
- Import MCPServer type for type safety
- Modify action signature to support passing enabled MCP servers per message

---------

Co-authored-by: lizhixuan <zhixuan.li@banosuperapp.com>
Co-authored-by: lizhixuan <zhixuanli219643@sohu-inc.com>
Co-authored-by: LiuVaayne <10231735+vaayne@users.noreply.github.com>
Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-03-08 01:41:05 +08:00
kangfenmao
4870307401 fix(UI): Improve model selection popup keyboard navigation and selection
- Add dynamic selected keys for the model selection menu
- Ensure correct model is highlighted when pre-selected or navigated via keyboard
- Simplify selection logic in SelectModelPopup component
2025-03-08 01:09:34 +08:00
kangfenmao
e2c277ae42 🔧 refactor(UI): Consolidate dropdown styles and remove global styles
- Remove global style components from MentionModelsButton and MCPToolsButton
- Move dropdown styles to a centralized SCSS file
- Refactor components to use styled-components for localized styling
- Improve code organization and reduce redundant styling
- Adjust table column widths in MCPSettings for better layout
- Simplify dropdown rendering by removing unnecessary fragments
2025-03-08 00:34:02 +08:00
kangfenmao
e5ae9ecd23 🔧 refactor(UI): Optimize MentionModelsButton with performance improvements and styling updates
- Add useCallback for togglePin and handleModelSelect to prevent unnecessary re-renders
- Refactor dropdown menu styling with more specific CSS scoping
- Simplify dropdown open/close logic
- Improve performance by memoizing function dependencies
- Adjust dropdown overlay styling and animation
2025-03-07 23:01:34 +08:00
LiuVaayne
8c574c1800 feat(MCP): add support for enabling/disabling MCPServers per message (#2989)
*  feat: add MCP servers in chat input

- Introduce MCPToolsButton component for managing MCP servers
- Add new icon for MCP server tools in iconfont.css
- Update Inputbar to include MCP tools functionality
- Add toggle functionality for enabling/disabling MCP servers
- Implement styled dropdown menu for server selection
- Add necessary type imports and useState for MCP server management

*  feat: add support for enabling/disabling MCPServers per message (main)

- Added `enabledMCPs` property to the `Message` type to track enabled MCPServers.
- Modified `MCPToolsButton` to enable all active MCPServers by default using a new `enableAll` state.
- Introduced `filterMCPTools` utility to filter tools based on enabled MCPServers.
- Updated `AnthropicProvider`, `GeminiProvider`, and `OpenAIProvider` to filter tools using `filterMCPTools`.
- Enhanced `Inputbar` to include `enabledMCPs` in the message payload when set.
2025-03-07 19:17:29 +08:00
kangfenmao
1fbd57d61d chore: Add TypeScript ignore comment for provider property in BaseWebSearchProvider 2025-03-07 13:48:19 +08:00
Vaayne
581f94f228 🔧 feat: add mcp tool response visualization and handling
- Introduce `MessageTools` component for displaying tool responses
- Add handling and state management for tool invocation statuses
- Implement tool response collapsing, expanding and copying functionality
- Update multiple providers (Anthropic, Gemini, OpenAI) to handle tool responses
- Add `upsertMCPToolResponse` utility for managing tool response states
- Extend types and interfaces to support new tool response metadata
- Integrate tool response handling into chat completion process
- Add necessary styling for tool response UI components
2025-03-07 13:37:15 +08:00
eeee0717
9d4f50b601 fix bug 2025-03-07 13:34:25 +08:00
Carter Cheng
c6b8a7cf2d fix(ui): Add inner glow opacity variable for dropdown menu styling for better darkmode support and improve code quality by using global variables in scss rather than hardcoded variables 2025-03-07 13:32:53 +08:00
kangfenmao
930a7c8259 feat: Improve model group management UI in EditModelsPopup
- Add dynamic group management button that changes based on group's current state
- Simplify group add/remove logic with a single button
- Enhance visual feedback for group-level model management
2025-03-06 23:27:10 +08:00
one
b6100fa275 feat: a button to add a whole group of models (#2736)
* feat: a button a add a whole group of models

* feat: search as typing in EditModelsPopup

* feat: add a button to remove a whole group of models

* feat: add remove button for model group in the model list
2025-03-06 23:04:10 +08:00
Carter Cheng
56f0308c28 feat(ui): Enhance mention models dropdown with improved styling and scrollbar 2025-03-06 23:03:08 +08:00
one
22256b2ac6 fix: relieve text shaking while streaming 2025-03-06 22:56:34 +08:00
kangfenmao
097509c6ef fix: remove duplicate migration for web search providers
Resolve duplicate migration for adding Searxng and Exa web search providers by consolidating the migration logic into a single version
2025-03-06 22:54:07 +08:00
Chen Tao
0025b67cf5 feat: support exa engine (#2870)
* feat: support exa engine

* chore
2025-03-06 22:44:43 +08:00
Yasin
d64c57b4a4 Site title for rankings on OpenRouter
add "HTTP-Referer"  and "X-Title" to defaultHeaders
2025-03-06 22:42:13 +08:00
one
2af27ff824 fix: distinguish model mention sources 2025-03-06 22:41:35 +08:00
ousugo
63a3b324d4 feat:(REGEX): Resaoning models regex matching QWEN's qwq series models 2025-03-06 22:37:43 +08:00
kangfenmao
c2fa2c83c4 feat: Upgrade database schema and migrate web search metadata
- Add database version 5 with schema updates
- Create `upgradeToV5` function to migrate Tavily web search metadata to new format
- Update types to support new web search metadata structure
- Minor code cleanup and formatting improvements
2025-03-06 22:34:28 +08:00
LiuVaayne
a855fe1f48 feat(MCP): support gemini and claude models (#2936) 2025-03-06 19:32:34 +08:00
icinggslits
7ab7fbabde feat: Windows Control Overlay button hover effect 2025-03-06 19:29:10 +08:00
icinggslits
321254fc0e feat: Focus input on mouse click 2025-03-06 19:28:44 +08:00
eeee0717
43ea1b8617 fix bug when enabled removed 2025-03-06 19:26:42 +08:00
kangfenmao
e5bdaef536 feat: Refactor web search settings and remove enabled flag
- Remove `enabled` flag from WebSearchProvider type
- Add `hasObjectKey` utility function to check optional properties
- Update WebSearchService to check web search availability based on API key/host
- Modify WebSearchSettings and WebSearchProviderSetting components to support API key/host validation
- Add Searxng provider in migration script
- Simplify web search provider configuration and validation logic
2025-03-06 17:53:45 +08:00
Chen Tao
fc65f313ac feat: refactor web search logic and support searxng (#2543)
* feat: support searxng model and refactor web search provider

* feat: basic refactor

* stash: web search settings page

* chore: refactor general setting and provider page

* feat: finish basic refactor and add searxng search

* feat: finish refactor

* chore(version): 1.0.2

* feat: change blacklist match pattern

* Merge branch 'main' into feat-websearch

* chore: add migrate

* chore: add old version migrate

* refactor UI

* chore(version): 1.0.5

* fix: update provider enabled: true, when check seach

* chore: fix migrate bug

---------

Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-03-06 16:17:26 +08:00
luwux
a53f596b0c fix(mcp): add required to tool call parameters 2025-03-06 16:15:09 +08:00
ousugo
cb0313e0a6 feat: Translation does not show the thinking content 2025-03-06 16:13:44 +08:00
Carter Cheng
0776cda8b5 feat(i18n): Add expand and collapse translations for code blocks 2025-03-06 14:40:29 +08:00
Peter Dave Hello
1d1d624dce Improve zh-tw Traditional Chinese locale a bit 2025-03-06 13:47:32 +08:00
Pleasurecruise
696ad19422 feat: add navbar poptip 2025-03-06 11:35:29 +08:00
icinggslits
dcc51da70b feat: Improve devtools font on Windows 2025-03-06 11:35:29 +08:00
LiuVaayne
0efecbdb1e feat: support MCP sse client (#2880)
*  feat: add Model Context Protocol (MCP) server configuration (main)

- Added `@modelcontextprotocol/sdk` dependency for MCP integration.
- Introduced MCP server configuration UI in settings with add, edit, delete, and activation functionalities.
- Created `useMCPServers` hook to manage MCP server state and actions.
- Added i18n support for MCP settings with translation keys.
- Integrated MCP settings into the application's settings navigation and routing.
- Implemented Redux state management for MCP servers.
- Updated `yarn.lock` with new dependencies and their resolutions.

* 🌟 feat: implement mcp service and integrate with ipc handlers

- Added `MCPService` class to manage Model Context Protocol servers.
- Implemented various handlers in `ipc.ts` for managing MCP servers including listing, adding, updating, deleting, and activating/deactivating servers.
- Integrated MCP related types into existing type declarations for consistency across the application.
- Updated `preload` to expose new MCP related APIs to the renderer process.
- Enhanced `MCPSettings` component to interact directly with the new MCP service for adding, updating, deleting servers and setting their active states.
- Introduced selectors in the MCP Redux slice for fetching active and all servers from the store.
- Moved MCP types to a centralized location in `@renderer/types` for reuse across different parts of the application.

* feat: enhance MCPService initialization to prevent recursive calls and improve error handling

* feat: enhance MCP integration by adding MCPTool type and updating related methods

* feat: implement streaming support for tool calls in OpenAIProvider and enhance message processing

* feat: Enhance MCPServer and MCPTool interfaces with optional properties and unique IDs

* fix(mcp): Refactor SSE transport initialization to use URL object

* fix(OpenAIProvider): correct inputSchema properties reference in tool parameters

* feat(MCPSettings): enhance server settings UI with new fields and improved layout

* feat(MCPSettings): add multilingual support for MCP server settings

* fix: remove unnecessary console log statements
2025-03-06 11:35:29 +08:00
kangfenmao
ad46a351c0 fix: finish_reason undefined 2025-03-06 11:35:29 +08:00
LiuVaayne
8fc69ec679 feat: add Model Context Protocol (MCP) support (#2809)
*  feat: add Model Context Protocol (MCP) server configuration (main)

- Added `@modelcontextprotocol/sdk` dependency for MCP integration.
- Introduced MCP server configuration UI in settings with add, edit, delete, and activation functionalities.
- Created `useMCPServers` hook to manage MCP server state and actions.
- Added i18n support for MCP settings with translation keys.
- Integrated MCP settings into the application's settings navigation and routing.
- Implemented Redux state management for MCP servers.
- Updated `yarn.lock` with new dependencies and their resolutions.

* 🌟 feat: implement mcp service and integrate with ipc handlers

- Added `MCPService` class to manage Model Context Protocol servers.
- Implemented various handlers in `ipc.ts` for managing MCP servers including listing, adding, updating, deleting, and activating/deactivating servers.
- Integrated MCP related types into existing type declarations for consistency across the application.
- Updated `preload` to expose new MCP related APIs to the renderer process.
- Enhanced `MCPSettings` component to interact directly with the new MCP service for adding, updating, deleting servers and setting their active states.
- Introduced selectors in the MCP Redux slice for fetching active and all servers from the store.
- Moved MCP types to a centralized location in `@renderer/types` for reuse across different parts of the application.

* feat: enhance MCPService initialization to prevent recursive calls and improve error handling

* feat: enhance MCP integration by adding MCPTool type and updating related methods

* feat: implement streaming support for tool calls in OpenAIProvider and enhance message processing
2025-03-06 11:35:29 +08:00
kangfenmao
4839167404 refactor(markdown): Optimize rendering with memoized components and dynamic imports #2889
- Memoize math engine selection
- Create dynamic components callback for markdown rendering
- Optimize import statements for KaTeX extensions
2025-03-05 21:14:29 +08:00
kangfenmao
1366cca1c4 fix(translate): Improve Enter key detection in translation input #2861 2025-03-05 17:16:05 +08:00
kangfenmao
7ca313c262 chore(version): 1.0.5 2025-03-05 15:53:08 +08:00
kangfenmao
3ebe1751bf feat(knowledge-base): Enhance file processing and localization
- Update useKnowledgeFiles hook to filter only completed processing files
- Improve localization messages for knowledge base file management
- Refactor delete and remove file button translations across locales
- Update confirmation messages to clarify file deletion behavior
2025-03-05 14:59:30 +08:00
kangfenmao
f728230793 feat(app-update): Refactor update handling and add manual update dialog
- Modify AppUpdater to separate update dialog logic
- Add new IPC handler for manually showing update dialog
- Update renderer hooks and store to track downloaded update state
- Switch import for UpdateInfo from electron-updater to builder-util-runtime
2025-03-05 14:33:10 +08:00
suyao
3bdb5ba7b1 fix(settings): Improve reasoning effort segmented control with 'off' option 2025-03-05 11:18:20 +08:00
ousugo
f8a534247a feat: Enable conditional settings shortcut based on user preferences 2025-03-05 11:17:34 +08:00
SuYao
3a5e8b7860 feat: support table and hyperlink when export to word (#2837)
* feat(export): Enhance markdown-to-docx export with table support

Add comprehensive table rendering capabilities to the ExportService, including:
- Support for table headers and body rows
- Configurable cell styling and alignment
- Handling of inline text formatting within table cells

* feat(export): Add hyperlink support in markdown-to-docx export

Enhance ExportService to handle hyperlinks during document export:
- Implement link detection in inline tokens
- Create ExternalHyperlink with proper styling
- Preserve link text and URL in exported document
2025-03-05 11:16:45 +08:00
kangfenmao
0b9e9c4c13 feat: Improve message filtering across providers
- Add new `filterUserRoleStartMessages` function in MessagesService
- Update Anthropic, Gemini, and OpenAI providers to use new message filtering
- Refactor message handling to ensure user messages start the conversation
- Remove redundant message filtering logic from individual providers
2025-03-05 11:11:02 +08:00
kangfenmao
452b0df476 feat: Enhance image upload and model-specific message handling
- Add vision model check before image upload in Inputbar
- Implement flexible message start forcing for specific models
- Improve provider-level message routing logic
2025-03-04 21:02:08 +08:00
kangfenmao
8dbc959616 feat(i18n): Add cherrycss.com link to custom CSS settings across locales 2025-03-04 17:48:06 +08:00
美兰十三
95f49543a0 feat(显示设置): 自定义css 增加cherrycss入口方便快速获取样式 (#2807)
* feat(显示设置): 自定义css 增加cherrycss入口方便快速获取样式

这是个无用的小辣鸡功能 = =、

* feat(显示设置): 自定义css 增加cherrycss入口方便快速获取样式

这是个无用的小辣鸡功能 = =、
2025-03-04 17:31:36 +08:00
Konjac-XZ
d5eb9dc37b fix: Token counter display issues when translating assistant messages. 2025-03-04 17:11:08 +08:00
SuYao
97bda2f02b refactor: Replace html2canvas with html-to-image for improved sup element (#2739)
* refactor: Replace html2canvas with html-to-image for improved screenshot capture

* refactor: Simplify scrollable div capture method

* refactor: Simplify captureScrollableDivAsBlob method

* fix: Specify PNG format in captureScrollableDivAsBlob method

* feat: Add error handling for large content dimensions in screenshot capture

* fix: Reorder error messages in en-us.json locale file
2025-03-04 15:37:29 +08:00
Asurada
d1c3b26602 feat: Update model label format to include provider information (#2793)
* feat: Update model label format to include provider information

* feat: Improve AddModelPopup layout and button styling
2025-03-04 15:36:07 +08:00
SuYao
c4051ba99d feat: Add code block wrapping functionality (#2411)
Signed-off-by: suyao <sy20010504@gmail.com>
2025-03-04 12:30:22 +08:00
FischLu
e5bf286deb feat: add resize handle to input textarea with drag interaction (#2174)
* feat: add resize handle to input textarea with drag interaction

* handle auto size inputbar

* optimize auto resize function and add i18n

* fix: expand button bug in inputbar and rebase to latest main

* rebase to main
2025-03-04 11:44:52 +08:00
ousugo
9bba459849 feat: Save proxy setting 2025-03-04 11:27:15 +08:00
kangfenmao
541204cc0f fix: Correct Tencent Cloud provider identifier and update UI styling
- Fixed typo in Tencent Cloud TI provider key from 'tentent-cloud-ti' to 'tencent-cloud-ti'
- Enhanced ProviderSettings search input with search icon and custom styling
- Adjusted button border radius for consistent UI design
2025-03-04 10:37:41 +08:00
fullex
12c3099bbb feat: add search function on provider list & optimize ui behaviors when dragging provider item (#2706)
* 添加“腾讯云TI”供应商及其支持的deepseek模型

* add search feature for model providers & adjust ui element behaviors when dragging

* dev merge fix

* merge fix
2025-03-04 10:27:18 +08:00
one
9ac73ff2d2 feat: improve SelectModelPopup (#2740)
* fix: do not match provider id for non-system models

* feat: match multiple words
2025-03-04 10:11:54 +08:00
kangfenmao
1e458951d1 feat: Add knowledge base file management functionality
- Implemented `useKnowledgeFiles` hook for managing knowledge base files
- Added localization support for knowledge base file management in multiple languages
- Created UI option to remove all knowledge base files in DataSettings
- Updated file size formatting utility function
- Modified ContentView and FilesPage to use file size correctly
2025-03-03 23:20:31 +08:00
kangfenmao
bce71b6535 feat: Implement comprehensive data restore functionality with progress tracking
- Added RestorePopup component for visualizing restore process
- Enhanced BackupManager with detailed restore progress tracking
- Implemented file copy progress and stage tracking during restore
- Updated localization files with restore progress translations
- Integrated restore progress reporting to renderer process
2025-03-03 22:32:55 +08:00
kangfenmao
6326d93928 feat: Add comprehensive backup progress tracking and UI
- Implemented detailed backup progress tracking in BackupManager
- Added new BackupPopup component for backup process visualization
- Enhanced backup process with file copy progress and stage tracking
- Updated localization files with backup progress translations
- Integrated backup progress reporting to renderer process
2025-03-03 22:22:29 +08:00
kangfenmao
3503f03169 refactor: Improve reasoning effort configuration for Claude models
- Refactored reasoning effort handling for Claude models
- Added type definition for ReasoningEffort
- Simplified budget token calculation
- Improved type safety and readability of the method
2025-03-03 18:44:18 +08:00
MyPrototypeWhat
0ec9107910 fix: shadow markdown (#1871)
问题:[Bug]: 当模型回复的html代码没有正确在代码框中时,html代码内容会影响到UI界面 #1767
原因:解析html之后css会污染应用样式
解决:将markdown完全放入shadow dom中,shadow dom天然隔绝样式,即可解决

* feat: Conditionally hide thinking loader for paused messages

* feat: Implement Shadow DOM for Markdown rendering

* feat: Add StyleProvider to Shadow DOM Markdown rendering

* fix: Refactor Markdown rendering with inline ShadowDOM component

Modify ReactMarkdown component to use style component for ShadowDOM rendering instead of wrapping component, simplifying the rendering approach

---------

Co-authored-by: lizhixuan <zhixuan.li@banosuperapp.com>
2025-03-03 18:23:18 +08:00
Asurada
1b88875584 feat: Added reset avatar feature and center align items in userpopup (#2658)
* feat: Add reset avatar functionality and update localization strings

* fix: Center align upload and reset avatar options in UserPopup
2025-03-03 17:58:15 +08:00
kangfenmao
aa2685a4e3 refactor: Update Tencent Cloud TI provider identifier and assets 2025-03-03 17:48:17 +08:00
fullex
6cbfe8733e feat: 添加“腾讯云TI”供应商及其支持的deepseek模型 (#2685) 2025-03-03 17:44:12 +08:00
kangfenmao
fdd1e238c4 refactor: Enhance message context menu with improved text selection and copying 2025-03-03 17:40:17 +08:00
Asurada
9fc2eeb907 feat: Add quote feature (#2657)
* feat: Add text quoting functionality to messages

* feat(i18n): add quote message to multiple language files
2025-03-03 17:25:34 +08:00
Konjac-XZ
41427b881c fix: Token estimate count cannot be updated on the UI when typing quickly. 2025-03-03 17:23:07 +08:00
one
12dcfb71f4 fix: show correct logo for qwen-omni-turbo (#2656)
* fix: show correct logo for qwen-omni-turbo

* fix: match omni in the middle
2025-03-03 17:17:25 +08:00
kangfenmao
eabf0513e1 refactor: Improve reasoning effort configuration for Anthropic models
- Refactored getReasoningEffort method to handle reasoning configuration more robustly
- Added type definitions for reasoning effort and configuration
- Simplified logic for calculating budget tokens
- Improved type safety and readability of the method
2025-03-03 17:12:50 +08:00
kangfenmao
344134876f fix: Adjust UI styling for consistent font sizes and layout spacing 2025-03-02 21:35:30 +08:00
MyPrototypeWhat
40b79fb713 refactor: Improve Ellipsis component and usage (#2603)
* refactor: Improve Ellipsis component and usage

- Modify Ellipsis component to use children instead of text prop
- Add support for multi-line and single-line ellipsis with styled-components
- Update KnowledgeContent to use new Ellipsis component structure
- Enhance ClickableSpan styling for better text truncation

* fix: Improve text wrapping in Ellipsis component

Add overflow-wrap: break-word to ensure long words are properly truncated in multi-line ellipsis

* refactor: Improve link and tooltip rendering in KnowledgeContent

- Wrap links with ClickableSpan for better interaction and styling
- Adjust Tooltip and Ellipsis placement for improved readability
- Remove unnecessary inline styling for links in ItemInfo

---------

Co-authored-by: lizhixuan <zhixuan.li@banosuperapp.com>
2025-03-02 20:43:56 +08:00
kangfenmao
8ab15234a5 docs: Add comprehensive documentation for KnowledgeService concurrent processing mechanism
- Created detailed technical documentation explaining the KnowledgeService's task queue and workload management
- Added JSDoc comment to KnowledgeService.ts to provide high-level overview
- Documented key aspects of concurrent task processing, including workload evaluation, task state management, and resource optimization strategies
2025-03-02 20:36:13 +08:00
icinggslits
2cb61f9261 feat: Improve file upload for the knowledge base (#2544)
* feat: Improve file upload for the knowledge base

* feat: Improve file upload for the knowledge base

* feat: Improve file upload for the knowledge base

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-03-02 20:21:23 +08:00
kangfenmao
d19793c1e4 feat: Add Zhihu mini app to the platform
- Added Zhihu (知乎直答) mini app logo
- Updated minapps configuration to include Zhihu mini app
- Modified store migration to enable Zhihu mini app by default
2025-03-02 20:12:54 +08:00
kangfenmao
6bc4d2d275 feat: Add Cici mini app and update mini apps grid layout
- Added Cici mini app logo in WebP format
- Updated mini apps grid to display 8 columns instead of 6
- Updated store migration to include Cici in enabled mini apps
- Updated Cici app logo import path
2025-03-02 20:06:35 +08:00
Sharker
f85321f011 chore: revert test code 2025-03-02 20:00:35 +08:00
Sharker
198635ae18 feat: added cici for mini app 2025-03-02 20:00:35 +08:00
shiquda
fb4a894285 feat: add you.com miniapp 2025-03-02 19:58:36 +08:00
PilgrimLyieu
c3c6bb261e feat: Add KaTeX copy-tex and mhchem support 2025-03-02 19:55:11 +08:00
suyao
abf029051f fix: Fix app quit exceptionally on MacOS's full screen mode add Add Escape key support for exiting fullscreen mode 2025-03-02 19:53:12 +08:00
kangfenmao
d38aaf4540 refactor: Extract StyleSheetManager into a separate context component
- Move StyleSheetManager logic from App.tsx to a new dedicated context component
- Simplify App.tsx by importing the new StyleSheetManager
- Preserve existing prop validation and filtering logic
2025-03-02 19:51:20 +08:00
MyPrototypeWhat
a8744fe812 feat: Enhance Styled Components configuration and prop handling
- Add Babel plugin for styled-components with performance and naming optimizations
- Integrate @emotion/is-prop-valid for improved prop filtering in StyleSheetManager
- Update Antd Input components to use variant="borderless" instead of deprecated bordered prop
- Add new dependencies for styled-components configuration
2025-03-02 19:47:11 +08:00
kangfenmao
c258ca74f2 fix: Improve metrics completion tokens handling 2025-03-02 19:41:06 +08:00
ZhuangYumin
64860aa498 fix: fix bug of metrics missing 2025-03-02 19:38:20 +08:00
hanzhao
75dd54b2a3 fix bug: #2306 2025-03-02 19:37:33 +08:00
kangfenmao
96a24bd210 feat: Conditionally render reasoning effort control for reasoning models 2025-03-02 09:23:39 +08:00
kangfenmao
379e92918d revert: some proxy errors in main process (#2294) 2025-03-01 23:17:44 +08:00
kangfenmao
a33c7329c5 refactor: Centralize emoji detection utility and improve avatar rendering 2025-03-01 23:16:12 +08:00
Pin Studios
ef3165b7e0 feat: Add emoji avatar support with image upload and picker & support i18n language (#2473) 2025-03-01 21:33:47 +08:00
SuYao
2eb01a3ed3 feat: Add reasoning effort control for Claude 3.7 (#2540)
* feat: Add reasoning effort control for Anthropic models with Anthropic Provider and OpenAI Provider

- Add reasoning effort settings with low/medium/high options
- Implement reasoning effort for Claude 3.7 Sonnet models
- Update localization tips for reasoning effort
- Enhance provider handling of reasoning effort parameters

* fix: Extract o1-mini and o1-preview

* fix: Add OpenAI o-series model to ReasoningModel

* fix: Improve OpenAI o-series model detection

* style: Reduce font size

* fix: Add default token handling using DEFAULT_MAX_TOKENS

* fix: Add beta parameter for Anthropic reasoning models
2025-03-01 21:22:12 +08:00
George·Dong
bec2d62ac6 feat: add MessageGroupMenuBar Tooltip (#2600)
* feat: add MessageGroupMenuBar Tooltip

* feat: update MenuBar Tooltip i18n
2025-03-01 20:28:40 +08:00
Jorben
7acec21f2c feat: Add Hunyuan TurboS model (launched on February 26)
- Add hunyuan-turbos-latest
- Add hunyuan-embedding
- Fix the issue of the embedding model displaying the internet icon (when the provider fully supports web search)
2025-03-01 20:27:41 +08:00
kangfenmao
b6195cff5c chore(version): 1.0.2 2025-03-01 12:25:33 +08:00
kangfenmao
2e298a64b8 fix: Simplify model selection logic in message regeneration
Modify the model selection process to directly use the appropriate model based on the conversation context, removing redundant conditional logic
2025-03-01 11:20:58 +08:00
kangfenmao
ae10f564f1 fix: Improve ModelAvatar and AssistantItem styling for better layout and text handling
- Add min-width and min-height to ModelAvatar to ensure consistent sizing
- Separate AssistantName into a new styled component for better text overflow handling
- Refactor AssistantItem to improve text display and icon alignment
2025-03-01 10:41:24 +08:00
kangfenmao
96a166c40a style: Refine Segmented component styling with transparent background and rounded corners 2025-03-01 01:44:02 +08:00
kangfenmao
0cb58d6ffc feat: Sort model groups alphabetically in provider settings
- Implement alphabetical sorting for model groups
- Use lodash's sortBy and toPairs to order model groups
- Modify rendering to use sorted model groups
2025-03-01 01:00:44 +08:00
suyao
75dc5c2ac2 fix: The proxy configuration is not correctly passed. 2025-03-01 00:42:56 +08:00
kangfenmao
4828604d86 feat: Extract ModelEditContent into separate component and refine UI styling
- Create new ModelEditContent component in ProviderSettings
- Separate model editing logic from ProviderSetting
- Adjust styling for AssistantItem and TopicsTab list items
- Refine Segmented component styling with transparent background
- Improve modal layout and interaction for model type configuration
2025-03-01 00:40:55 +08:00
kangfenmao
2592fe04a8 feat: Add assistant icon display toggle in settings
- Implement new setting to show/hide model icons in assistant list
- Add localization support for new assistant settings
- Update UI to conditionally render model avatar in AssistantItem
- Modify settings store to include showAssistantIcon state
- Enhance display settings with new toggle switch for assistant icon
2025-03-01 00:18:47 +08:00
kangfenmao
d0c9752fed refactor: Simplify Segmented component styling
- Remove custom Segmented styling from AntdProvider
- Update HomeTabs Segmented component with refined styles
- Consolidate Segmented styling in a single location
- Improve visual consistency with rounded corners and transparent background
2025-02-28 23:25:36 +08:00
kangfenmao
95f9d649ff feat: Enhance UI styling and interaction details
- Update window vibrancy to 'sidebar' for better visual effect
- Refine input bar styling with softer background and rounded corners
- Adjust toolbar button sizes and styling
- Modify topic position selection to use Segmented component
- Tweak light theme background opacity
2025-02-28 23:25:36 +08:00
ousugo
5f5db71fc3 fix: Normal content is misidentified as chain of thought content 2025-02-28 22:06:08 +08:00
Asurada
669199683b feat: Added More Settings section with risk warnings in model type configuration (#2560)
* feat: add "More Settings" option in multiple languages and enhance model type selection UI

* feat: add "More Settings" option with warnings and confirmation prompts in multiple languages

* fix: improve modal close handling and reset model type visibility
2025-02-28 22:04:44 +08:00
kangfenmao
2772b45b30 chore: Update Xirang provider configuration and localization 2025-02-28 18:20:23 +08:00
lbc123456
e93eff4e34 feat: 模型服务添加天翼云模型 (#2238)
* feat: 模型服务添加天翼云模型

* feat:add website

* fix: id is duplicate

---------

Co-authored-by: 李保成 <libaocheng@cndatacom.com>
2025-02-28 17:40:57 +08:00
kangfenmao
dcb0597706 Revert "feat: allow o1 streaming"
This reverts commit 50220fe30b.
2025-02-28 14:20:37 +08:00
ZhuangYumin
d8ddabc04f feat: let quick assistant follow theme setting 2025-02-28 13:14:45 +08:00
Pres
4b65dc82f6 feat: add support for GPT 4.5 2025-02-28 13:14:05 +08:00
Pres
a5e615578f fix:Claude model name typo 2025-02-28 11:53:30 +08:00
xiaotianxt
daf5741884 fix: remove restrictions on mac alt+x shortcuts
Restrictions are introduced in earlier beta versions of MacOS Sequoia.
However, in the public release, Apple revoke this restrictions.

Alt+[Char] shortcut has no restrictions now.
2025-02-28 10:30:47 +08:00
onevcat
185a26a4b6 Remove unused protocol register and open url code 2025-02-28 08:19:04 +08:00
eeee0717
9642034639 fix bug: #2474 2025-02-28 08:18:14 +08:00
TW
bc7c74e0ea feat: Enhance Assistant and Topic components with title attributes for better accessibility 2025-02-28 08:17:01 +08:00
onevcat
c011d18c72 Switch to @use and module system for scss 2025-02-28 08:16:03 +08:00
onevcat
90ac88f5cc Use the Russian language label
This ensures the language label aligns with others (using its own language name instead of English).
2025-02-27 20:40:52 +08:00
Asurada
8379c0ed3a feat: Add model editing functionality to provider settings (#2243) 2025-02-27 17:00:01 +08:00
CherryLover
166e8f8473 feat: 为模型选择弹窗添加键盘导航功能 (#2057)
* feat: 为模型选择弹窗添加键盘导航功能

* fix(SelectModelPopup): 改进键盘导航和项目筛选
2025-02-27 16:58:11 +08:00
SuYao
f1e6f6b78f fix: some proxy errors in main process (#2294)
* formatter proxy config type

* fix: some proxy errors in main process

* chore: Remove debug logging in ProxyManager
2025-02-27 16:46:05 +08:00
ZhuangYumin
50220fe30b feat: allow o1 streaming 2025-02-27 16:42:11 +08:00
NJczh
31b1bed298 fix:修复备份恢复完成后可能无权限清理临时目录 (#2247) 2025-02-27 16:40:47 +08:00
xiaotianxt
21b326ee69 feat: Improve settings navigation hotkey behavior
- Add location check to prevent navigating to settings when already on settings page
- Enable hotkey on content editable and form elements
- Use useLocation to track current route
2025-02-27 16:39:52 +08:00
SuYao
a088023869 fix: favicon can't load error (#2426)
* feat: Implement robust favicon loading with fallback mechanisms

* refactor: Improve favicon loading state and use Promise Method

* refactor: Extract FallbackFavicon into a separate component

* feat: Add Splitbee favicon service to fallback favicon URLs
2025-02-27 16:38:14 +08:00
yeongpin
87b78caf61 feat: Add GIF support for avatar uploads without compression 2025-02-27 15:02:02 +08:00
kangfenmao
8e6901b360 fix: Adjust file upload and navbar styling for cross-platform compatibility
- Update Dragger component to use customRequest for file uploads
- Add Windows-specific padding adjustment for navbar right section
2025-02-26 13:33:21 +08:00
kangfenmao
aba084e14a feat: Add O3 provider and refactor migration logic 2025-02-26 13:33:11 +08:00
icinggslits
290b7a2fd7 feat: Add search button to the knowledge base, and adjusted the display for drag-and-drop uploads (#2365)
* feat: Add search button to the knowledge base, and adjusted the display for drag-and-drop uploads

* feat: Add search button to the knowledge base, and adjusted the display for drag-and-drop uploads
2025-02-26 12:06:34 +08:00
ZhuangYumin
88e640f278 feat: add better support for openrouter thinking format 2025-02-26 12:04:47 +08:00
首都爱护动物协会
5c32d41cd8 add o3 2025-02-26 12:03:08 +08:00
kangfenmao
f09d1b3d9a chore: Improve localization formatting for Notion and Yuque error messages
- Standardize spacing and capitalization in Chinese (Simplified and Traditional) locales
- Enhance readability of error and configuration messages
- Consistent formatting for API keys, database IDs, and URLs
2025-02-26 00:21:49 +08:00
kangfenmao
74c92ba794 feat: Enhance web search settings with blacklist and result configuration
- Update Tavily description across locales to emphasize AI agent capabilities
- Add blacklist functionality for web search results
- Introduce configurable maximum search results
- Improve localization for web search settings in multiple languages
2025-02-26 00:16:13 +08:00
kangfenmao
deb4545419 chore: Reorganize and clean up localization files
This commit involves minor reorganization and cleanup of translation files across multiple languages (en-us, ja-jp, ru-ru, zh-cn, zh-tw). Changes include:

- Reordering of some translation keys
- Removing duplicate entries
- Slight restructuring of nested translation objects
- Minor formatting adjustments
2025-02-26 00:02:03 +08:00
Chen Tao
09652b2e31 feat: add web search settings (#2314)
* fix: add time when using web search

* feat: add optional

* chore

* chore

* chore

* clean code

* feat: set search max results

* feat: add manual blacklist

* clean code

* chore

* chore

* clean
2025-02-25 23:46:51 +08:00
ousugo
ffac0d4c49 feat: Improve think tag processing with more robust parsing 2025-02-25 23:46:25 +08:00
kangfenmao
ab294d783c fix: Update favicon service for message citations 2025-02-25 23:43:22 +08:00
kangfenmao
c8490bf086 fix: assistant and agent emoji 2025-02-25 21:00:23 +08:00
kangfenmao
5664d84e2c refactor: Extract file drop handling logic to separate utility function 2025-02-25 19:53:04 +08:00
icinggslits
3068cdcf7a feat: Support more file drag and drop scenarios (#2278)
* feat: Support more file drag and drop scenarios

* feat: Support more file drag and drop scenarios
2025-02-25 19:46:32 +08:00
kangfenmao
83b3531306 chore: Remove social media links from About settings 2025-02-25 19:40:52 +08:00
kangfenmao
e8b19c409d fix: Standardize Notion connection error messages across locales 2025-02-25 19:34:15 +08:00
kangfenmao
3363d1507b fix: 修复深色模式下气泡样式的用户名样式错误问题
This reverts commit 704ddfd7cc.
2025-02-25 19:31:19 +08:00
icinggslits
d938531c31 fix: Export image in dark mode (#2332)
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-02-25 19:20:11 +08:00
eeee0717
22c356062b fix bug: 深色模式对话导出渲染不正确 2025-02-25 19:12:44 +08:00
ousugo
a906097026 feat: Enhance reference prompt with language matching instruction 2025-02-25 19:09:56 +08:00
Aglargil
9ee915a34b feat: add export to Yuque 2025-02-25 19:06:37 +08:00
Godcoper
704ddfd7cc fix: 修复深色模式下气泡样式的用户名样式错误问题 2025-02-25 18:58:10 +08:00
suyao
5e4d507ab8 chore: Update Grok app logo and related images 2025-02-25 15:01:01 +08:00
kangfenmao
1cbf070275 refactor: Move fullscreen notification logic to a separate hook 2025-02-25 13:32:15 +08:00
ousugo
04ac04c94d feat: Add fullscreen mode notification with localized message 2025-02-25 13:28:29 +08:00
kangfenmao
947b7047a0 chore: Remove console logs and clean up code
This commit removes unnecessary console.log statements and makes minor code cleanup in several files:
- PlantUML component
- WebSearchSettings
- WebSearchService
- Store settings

Additionally, it updates the store migration to handle LM Studio provider addition and reverts the store version
2025-02-25 13:27:31 +08:00
Chen Tao
49db9bb6e5 fix: 网络搜索添加时间信息 (#2255)
* fix: add time when using web search

* feat: add optional

* chore

* chore

* chore

* clean code
2025-02-25 13:20:53 +08:00
preszzz
7953f6bb86 feat: add new claude 3.7 model support 2025-02-25 13:17:09 +08:00
Alice39s
75ac31345c feat: Add support for Gemini 2.0 and update Yi model configurations
- Added `gemini-2.0` to `visionAllowedModels`.
- Introduced new Gemini models in `SYSTEM_MODELS`:
  - `gemini-1.5-flash-8b`
  - `gemini-2.0-flash`
- Updated Yi model configurations:
  - Renamed `yi-lightning` to "Yi Lightning".
  - Deprecated `yi-medium`, `yi-large`, and `yi-vision` (replaced by `yi-lightning` per documentation).
  - Added `yi-vision-v2` as a new version of Yi Vision.
2025-02-25 08:29:59 +08:00
ousugo
2aab0b497a feat: Adapt glmzeropreview thinking chain format, enhance message thought processing with flexible extractors, 2025-02-25 08:29:16 +08:00
自由的世界人
448b946ef4 fix: folder spelling change (#2242) 2025-02-25 08:26:25 +08:00
Zicheng Zhang
20ce7ccf26 fix: count reasoning content into token estimation (#2276) 2025-02-25 08:24:53 +08:00
eeee0717
dab9787d8c fix bug: uniqueIds is null when uploaded directory 2025-02-24 21:40:17 +08:00
kangfenmao
3b194d7b1a fix: Update Infini provider API URL to include '/maas' path 2025-02-24 18:08:22 +08:00
icinggslits
85cd8a0cf4 feat: add shortcut to home window of mini app 2025-02-24 12:58:40 +08:00
vic123
ce966425b6 fix: undesired assistant selection menu popup when no ' ' before '@' 2025-02-24 12:57:26 +08:00
SagoLu
0a0c3d0ac7 fix:修复在备份和恢复备份时由于无法删除临时目录导致的功能终止 (#2224)
* refactor: Remove chat settings toolbar button from input bar

* fix:修复在备份时,由于临时文件只读导致的备份失败

* fix:修复在恢复备份时,由于临时文件只读导致的备份失败

---------

Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-02-24 12:56:19 +08:00
Alice39s
146cabf768 feat: Improve support for the Codestral and additional Mistral models
- Added new image asset `codestral.png` for Codestral model.
- Updated `embedings.ts` to include the `mistral-embed` embedding model with `max_context: 8000`.
- Updated `models.ts` to:
  - Add support for Codestral model with `codestral-latest` ID.
  - Introduce new Mistral models, including:
    - `ministral-3b-latest`
    - `ministral-8b-latest`
    - `mistral-large-latest`
    - `mistral-small-latest`
    - `mistral-embed`
  - Organize models into appropriate groups (e.g., "Mistral Chat", "Mistral Code").
- Adjusted `getModelLogo` function to include Codestral and Ministral logos.
2025-02-24 12:55:28 +08:00
kangfenmao
442909104e refactor: Rename onResend to onResendUserMessage for clarity 2025-02-24 12:50:29 +08:00
Asurada
6a24364147 feat: Add remark function to knowledge url (#2210)
* chore: Update .gitignore to exclude .cursor/rules

* feat: Add remark function to knowledge url
2025-02-24 12:47:47 +08:00
dengshenkk
d2950e023d feat: 用户侧消息快捷重试功能 (#2221)
* Update MessageMenubar.tsx

用户发送消息可以重试, 方便在接口错误后进行重试

* Update MessageMenubar.tsx
2025-02-24 12:41:59 +08:00
ousugo
4c24418ec7 feat: Improve knowledge base creation popup input focus 2025-02-24 12:40:46 +08:00
ousugo
d9f581a375 feat: Enhance knowledge search popup input focus behavior 2025-02-24 12:40:46 +08:00
sijie-chan
8fc4cf4b4b fix: 添加多个目录到知识库多个进度之间展示混淆 2025-02-24 12:40:00 +08:00
kangfenmao
820b4a2376 feat: Add Tavily dark mode logo and improve web search settings UI 2025-02-23 15:10:01 +08:00
kangfenmao
17d84a621f refactor: Rename AssistantItemComponent to AssistantItem and update imports 2025-02-23 14:30:17 +08:00
wnzzer
7f4bc5c80f fix:清空话题总是修复当前话题 (#2167) 2025-02-23 14:26:31 +08:00
kangfenmao
eba0d74eaa feat: Improve web search UI and localization 2025-02-23 14:22:09 +08:00
kangfenmao
0a89b09fc9 chore: Update Tavily core package and remove js-tiktoken dependency 2025-02-23 11:01:30 +08:00
kangfenmao
bbe89b6e41 feat: add web search 2025-02-23 11:01:29 +08:00
kangfenmao
bb624232f2 chore(version): 0.9.30 2025-02-23 07:02:00 +08:00
kangfenmao
8f4868af01 feat: Enhance assistant emoji and popup UI interactions 2025-02-23 06:45:35 +08:00
George·Dong
3874a1ee5d feat: 添加Notion导出自动分页功能 (#2098)
* fix: 长对话Notion导出失败(分页导出)

* feat: 添加Notion导出自动分页设置
2025-02-23 06:45:26 +08:00
ousugo
edc01ea0ba feat: Auto-select newly added knowledge base 2025-02-23 00:17:46 +08:00
ousugo
a34c6b19be fix: Regenerat messages don't use @ specified models 2025-02-22 22:35:02 +08:00
ousugo
f8947a7f34 fix: Restore textarea focus after selecting mention model via mouse 2025-02-22 22:34:16 +08:00
shijian
be654a8520 fix: 复制聊天信息按钮显示不全 2025-02-22 22:32:30 +08:00
kangfenmao
29afcfed7f fix: Remove LM Studio provider from initial state 2025-02-22 22:31:37 +08:00
kangfenmao
253da36210 fix: Remove duplicate empty LM Studio providers 2025-02-22 13:35:14 +08:00
aber0724
fbc3a29811 feat: Add Monica minapp 2025-02-22 11:27:30 +08:00
sijie-chan
de1999037f fix: 添加目录到知识库任意一个失败界面上会展示失败 2025-02-22 11:26:31 +08:00
kangfenmao
9bb7b2751f feat: update miniapp logo 2025-02-21 18:25:23 +08:00
kangfenmao
596a73c5ec feat: Enhance topic message clearing functionality
关于“清空话题”的Bug反馈 #2107

close #2107
2025-02-21 16:48:04 +08:00
suyao
799b70f9d9 fix: add first message handling in mini home window 2025-02-21 16:32:56 +08:00
kangfenmao
807d3cfa9f feat: add export function to message 2025-02-21 16:27:07 +08:00
kangfenmao
93e5ed827e refactor: Remove chat settings toolbar button from input bar 2025-02-21 14:31:05 +08:00
kangfenmao
7172c390a0 feat: Synchronize and clean up localization files
This commit involves several improvements to localization files across different languages:
- Reordered and cleaned up translation keys
- Removed redundant entries
- Ensured consistent ordering of keys
- Added missing translations for various features
- Normalized whitespace and formatting
2025-02-21 14:15:36 +08:00
落子
f22fc29cad feat: add "Copy as" options to topics right click menu (#2095)
* feat: Add copy topic as image and Markdown functionality

* add translation
2025-02-21 13:59:34 +08:00
Avan
c4747b0cd3 feat: baidu ai search 2025-02-21 13:58:19 +08:00
kangfenmao
bd2a4c3c22 feat: Add API host formatting utility function 2025-02-21 13:50:24 +08:00
MyPrototypeWhat
bb02ebe818 refactor: Move abort controller to utils and update imports 2025-02-21 12:50:18 +08:00
MyPrototypeWhat
01bf84b8ca feat: Add message completion abort functionality 2025-02-21 12:50:18 +08:00
kangfenmao
7f74e2a567 refactor: Simplify translation history clear button configuration 2025-02-21 11:17:41 +08:00
ousugo
b568dfef17 feat: Add newline tooltip for translation input 2025-02-21 11:16:02 +08:00
kangfenmao
f395bb32de refactor: Simplify embedding model regex pattern 2025-02-21 09:46:26 +08:00
kangfenmao
40ddf94224 refactor: Clean up MinAppsPopover component formatting 2025-02-20 15:35:51 +08:00
kangfenmao
a9ee9ec762 refactor: Simplify topic deletion interaction 2025-02-20 15:33:24 +08:00
ousugo
9189cdb8ff feat: Add direct topic deletion shortcut 2025-02-20 15:19:32 +08:00
ousugo
8d1ec04dd3 feat: Add confirmation dialog for topic deletion 2025-02-20 15:19:32 +08:00
Yrom
9eee9c42fa feat: add developer tools button in MinApp for development mode 2025-02-20 15:19:10 +08:00
ousugo
530aeb58b8 feat: Add emoji selection for assistant name 2025-02-20 15:17:04 +08:00
kangfenmao
438b8cb08a fix: Update migration config to set default thought auto-collapse 2025-02-20 12:24:24 +08:00
ousugo
7861803814 feat: Add thought content auto-collapse setting 2025-02-20 12:22:45 +08:00
ousugo
adb5e4fc31 feat: Add copy functionality to message reasoning content 2025-02-20 12:22:45 +08:00
kangfenmao
58100ab822 refactor: Simplify translation page layout and styling 2025-02-20 12:16:38 +08:00
Chen Tao
b405d2e9ac feat: add shortcuts to open settings page (#1964)
* feat: add shortcuts to open settings page
* refactor: simplify code
* fix: change to useHotKeys
2025-02-20 12:10:16 +08:00
jtsang4
f1a9699be4 feat: Add backspace handling to remove last mentioned model 2025-02-20 12:08:25 +08:00
eeee0717
173e164d2b fix: knowledge base status problem 2025-02-20 12:07:05 +08:00
kangfenmao
54b7bfd663 fix: Improve null handling in code block and syntax highlighting 2025-02-20 12:04:29 +08:00
kangfenmao
7f3e6bb44d refactor: Remove default grid settings from migration config 2025-02-20 11:54:21 +08:00
littel_penguin66
e5dee7801e feat: add dify miniapp (#1999)
* add Dify miniapp

* add wpslingxi,lechat,abacus miniapps

* resize pic

* change png to webp

* update 71
2025-02-20 11:52:36 +08:00
FischLu
5503a2ccea fix: fix translation 2025-02-20 11:50:49 +08:00
onlyfeng
64a609cdf0 fix(KnowledgeBase): handle JSON parse failure by falling back to text file processing to avoid error display affecting normal progress indication 2025-02-20 11:44:36 +08:00
kangfenmao
34a5b89754 fix: Ignore hidden files when traversing directories 2025-02-20 11:43:01 +08:00
FischLu
c65d351a3d fix: fix the issue where the menu scrolls back to the top after clicking an option 2025-02-19 21:40:32 +08:00
Teo
b0f74159dd feat: 添加翻译历史功能 2025-02-19 19:38:59 +08:00
Yrom
6c8b93c4d1 feat: Support dark theme for PlantUML 2025-02-19 18:37:05 +08:00
Yrom
d73d92e795 feat: Add PlantUML diagram support (via PlantUML official online server) 2025-02-19 18:37:05 +08:00
ousugo
598630b294 refactor: Simplify model type detection with utility functions 2025-02-19 18:33:51 +08:00
ousugo
aa3e1cc1e6 feat: Add Doubao provider support for model type detection
(cherry picked from commit 008b84e128484c98eb59c75d8f44cbc320509049)
2025-02-19 18:33:51 +08:00
ousugo
a9f34f12b9 feat: Add model generation check before narrow mode toggle 2025-02-19 18:33:16 +08:00
jiangjiwei
0e60ee47f1 feat: 为 Notion 导出添加可配置的页面名称 key 2025-02-19 17:18:45 +08:00
ousugo
d35e604462 fix: Ensure model is updated when setting default model 2025-02-19 17:13:52 +08:00
Teo
fd734e0810 refactor: 翻译页UI重构 2025-02-19 15:53:52 +08:00
kangfenmao
aafb62cb2f feat: Add web search support for OpenRouter provider 2025-02-19 10:11:49 +08:00
icinggslits
08535924ce feature: Adaptive height of textarea on translation page 2025-02-19 09:57:26 +08:00
kangfenmao
76a02d184f feat: Add default API host for DMX provider in migration 2025-02-19 09:45:41 +08:00
kangfenmao
af461c9246 fix: Safely update topic with existing topic data 2025-02-19 09:35:10 +08:00
kangfenmao
8815b6248e fix: Improve knowledge base processing and deletion handling 2025-02-19 09:28:36 +08:00
kangfenmao
b832809b7a refactor: Simplify DragableList styling and remove unnecessary margins 2025-02-19 09:21:10 +08:00
suyao
88e36627f5 fix: update model identification with provider-specific uniqueness 2025-02-19 09:14:45 +08:00
ousugo
ac2a3156f8 feat: Add German language support to translation options 2025-02-19 08:21:00 +08:00
George·Dong
ff42b512cf feat: 添加Notion文档按钮Tooltip 2025-02-19 08:20:21 +08:00
George·Dong
ee1b8f95c3 fix: 修改导出到Notion的相关提示 2025-02-19 08:20:21 +08:00
icinggslits
856cd7d34f fix: Update language options promptly 2025-02-19 08:18:41 +08:00
首都爱护动物协会
64fb414e62 Updated provider information 2025-02-19 07:10:45 +08:00
kangfenmao
35b47ec640 fix: Add top margin to 'Add Assistant' button in AssistantsTab 2025-02-18 21:17:13 +08:00
Yrom
e4101fff49 feat: Enable search capability for Qwen commercial version model 2025-02-18 21:14:43 +08:00
kangfenmao
e6f3663e9b chore(version): 0.9.26 2025-02-18 20:55:04 +08:00
kangfenmao
64da3d32b8 fix: Update agent knowledge base field name and handling 2025-02-18 20:55:04 +08:00
Chen Tao
3da3ee0225 feat: artifacts add open external (#1812)
* feat: artifacts add open external

* fix: remove modal
2025-02-18 19:56:39 +08:00
Teo
6e4be783d7 fix: 解决生成过程中出现错误内容被清空覆盖问题 2025-02-18 19:46:50 +08:00
美兰十三
76267716c3 fix: 修复mac下快捷键注册control被替换成command的问题 2025-02-18 19:46:28 +08:00
eeee0717
10cf842224 feat: 目录进度可视化 2025-02-18 19:45:47 +08:00
kangfenmao
f735673f6d feat: Add 'off' option for reasoning effort in assistant settings 2025-02-18 18:16:14 +08:00
ousugo
edcf45d7c0 fix: Recalculate token consumption after modifying the message, resolve #1829 2025-02-18 16:34:52 +08:00
ousugo
4cfb6a9118 fix: Improve DragableList component styling and placeholder handling 2025-02-18 16:26:34 +08:00
lucifer9
73e48c045e adjust Notion database ID input width in DataSettings 2025-02-18 16:22:53 +08:00
lucifer9
d2139abcb9 Refactor WebDAV i18n and UI for improved flexibility and localization
- i18n Updates:
   - Refactored WebDAV-related translations into nested JSON structures for better organization.
   - Added support for pluralization in time intervals (minutes and hours) across all locales (en-us, ja-jp, ru-ru, zh-cn, zh-tw).

 - UI Enhancements:
   - Updated `DataSettings` and `WebDavSettings` components to use the new i18n keys for time intervals.
   - Improved the `Select` dropdown for sync intervals with dynamic pluralization based on locale.
   - Adjusted input field widths for better alignment and consistency.

 - Code Cleanup:
   - Removed redundant comments and unused code in `WebDavSettings.tsx`.
   - Simplified button and input styling for a cleaner layout.
2025-02-18 16:22:53 +08:00
ousugo
14680f98e4 fix: Clicking the taskbar icon while enable the Quick Assistant can't open the main window 2025-02-18 16:01:10 +08:00
ousugo
da67f2a863 feat: Add kimi-latest model support in vision and model logos 2025-02-18 15:50:01 +08:00
kangfenmao
040dcb836e style: Adjust horizontal message layout display property 2025-02-18 15:48:13 +08:00
Teo
59cbb894ea style: 优化聊天窗口UI (#1881) 2025-02-18 11:43:42 +08:00
MyPrototypeWhat
4c6cc4140c feat: Conditionally hide thinking loader for paused messages (#1875)
Co-authored-by: lizhixuan <zhixuan.li@banosuperapp.com>
2025-02-18 11:10:48 +08:00
kangfenmao
e5ace39a75 chore(version): 0.9.25 2025-02-18 10:41:44 +08:00
kangfenmao
75af101bbc feat: Add size prop to MessageThought Collapse component 2025-02-18 10:12:30 +08:00
kangfenmao
a8853a2322 fix: Handle undefined provider in model name generation 2025-02-18 09:56:26 +08:00
kangfenmao
cb381bda5e feat: Improve system prompt styling with theme-aware background 2025-02-18 09:42:52 +08:00
icinggslits
c519edce64 feat: Backspace deletes clipboard text in MiniApp 2025-02-18 08:13:56 +08:00
icinggslits
0521aa0bca fix: init zoom 2025-02-18 08:11:38 +08:00
ousugo
d4b49f5b56 refactor: Improve PromptPopup text area focus and cursor placement 2025-02-18 08:10:58 +08:00
ousugo
978306ab4e feat: Improve text edit popup focus and cursor placement 2025-02-18 08:10:58 +08:00
kangfenmao
5d82029e56 refactor: Extract message group menu bar into a separate component 2025-02-17 23:21:24 +08:00
kangfenmao
ea11591f75 fix: Adjust paragraph margin when followed by list 2025-02-17 23:08:17 +08:00
kangfenmao
ebe3980bac fix: Conditionally render message group border based on popover state 2025-02-17 23:02:49 +08:00
Chen Tao
d263d2078a feat: add knowledge base filter (#1822)
* feat: add search filter

* chore
2025-02-17 22:18:10 +08:00
kangfenmao
17891d20c7 refactor: Extract message group settings into a separate component 2025-02-17 22:14:47 +08:00
luwux
cfc9c42c8d improvement(shortcut): Supports Option + Space on Mac
Supports the Option (⌥) + Space shortcut, as it's the default shortcut for ChatGPT Desktop app to show popup.
2025-02-17 19:04:08 +08:00
ousugo
8f3e17a003 feat: Add page title for Cherry Studio, resolve #1222 2025-02-17 19:02:56 +08:00
rebecca554owen
25a3cd5073 fix 2025-02-17 18:38:22 +08:00
kangfenmao
83ddb8e161 feat: Add grid mode settings for message display 2025-02-17 18:35:36 +08:00
kangfenmao
43375058af feat: Enhance Notion settings with placeholders and help icon 2025-02-17 17:19:24 +08:00
kangfenmao
914f83183e feat: update knowledge base file upload hint text 2025-02-17 16:50:34 +08:00
FischLu
368177e587 feat: improve model mention autocomplete behavior under IME 2025-02-17 16:38:44 +08:00
duanyongcheng
ce421dbe78 feat: show provider in mesage 2025-02-17 16:38:00 +08:00
Chen Tao
2e8af9ef26 feat: allow knowledge base multiple search #1346 (#1773)
* feat: agent can select multiple knowledge bases

* feat: basic search multiple knowledge base

* fix bug: knowledge base is delete, assistants and agents sync delete

* fix bug: assistant and knowledge base button sync

* feat: allow to search multiple knowledge base

* chore: finish rebase to upstream/main
2025-02-17 16:36:25 +08:00
cl1107
194a2e1d3a feat: Add a new grid mode for message display. (#1626)
* chore(version): 0.9.23

* feat(renderer): 新增网格模式的消息展示方式

* feat(message): 新增消息网格展示相关设置

* 根据 gridPopoverTrigger 属性动态设置消息分组的样式

* 在 MessageMenubar 组件中,各个按钮 click 事件阻止事件冒泡,避免打开 popover

* 多模型回答样式添加网格模式并优化消息样式

---------

Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-02-17 16:36:01 +08:00
首都爱护动物协会
f0ada3c9fe update provider info 2025-02-17 16:21:09 +08:00
ousugo
2842d439cd fix: open current webview URL when launching external link 2025-02-17 16:20:12 +08:00
ousugo
34ba72d1fa fix: Clicking the help button always opens a new webview
(cherry picked from commit 4939afafabcbfb294f00d21053939cad8238731e)
2025-02-17 16:19:31 +08:00
ousugo
8905f34350 fix: update Baidu API key URL in provider configuration, resolve #1794 2025-02-17 11:55:53 +08:00
George·Dong
8de58048c8 fix: 修复切换助手时无法正确切换到助手默认模型的问题 (#1776) 2025-02-17 11:28:17 +08:00
Shelly
532139f4cb fix: 修复同名模型选择问题 (#1772)
1. 同名模型显示的供应商名称问题
2. 同名模型不同供应商不能被同时选择

Co-authored-by: duanyongcheng <duanyongcheng77@gmail.com>
2025-02-17 09:47:01 +08:00
Wenwei Lin
616b95f8fa feat: support json and draftsExport file in knowledge base (#1717) 2025-02-17 08:25:07 +08:00
ousugo
51692ad3a4 feat: Expand reasoning model regex to include 'thinking' keyword 2025-02-17 08:16:47 +08:00
ousugo
35b9726b29 fix: sidebar navigation and active state handling
- 当固定在侧边栏的小程序被打开时,对应图标显示为被选中
- 修复点击两次主题切换按钮会导致当前 Webview 被错误关闭的问题
- 修复当 Webview 处于打开状态,点击侧边栏按钮无法立即跳转到对应界面的问题
- 修复打开帮助文档,其按钮没有显示为被选中的问题
- 修复在设置界面时打开帮助文档,设置按钮继续显示为被选中的问题
2025-02-17 08:15:03 +08:00
ousugo
3f8ac280e6 fix: correction of the capitalization of Perplexity names 2025-02-17 08:13:56 +08:00
ousugo
ed7eb361e3 fix: Fix the miniapp sorting problem, resolve #1725
- 修复小程序拖动排序不生效的问题
- 修复小程序拖动排序时列表滚动排序不生效的问题
2025-02-17 08:13:56 +08:00
kangfenmao
421540eec0 style: Enhance scrollbar appearance in mention models dropdown 2025-02-16 13:56:10 +08:00
FischLu
0937700537 refine code 2025-02-16 13:54:32 +08:00
FischLu
3f656ab202 feat: implement select mode menu autoscroll for long mode lists 2025-02-16 13:54:32 +08:00
kangfenmao
87bce69a13 Revert "fix: Improve the @ model list experience"
This reverts commit efba601f0f.
2025-02-16 13:54:09 +08:00
bfdyanshe
50cd93cf62 fix: Separate EPUB files into dedicated book file extension category 2025-02-16 13:46:52 +08:00
bC2y5tal
7a7f51d5f3 feat: Add EPUB file support to document loader 2025-02-16 13:46:52 +08:00
icinggslits
6a7ec6d8ba improvement(shortcut): Support more keyboard shortcuts 2025-02-16 13:45:03 +08:00
icinggslits
d4129816ce add usableEndKeys 2025-02-16 13:45:03 +08:00
kangfenmao
8605e9ae44 feat: Enhance topic handling and message prompt generation 2025-02-16 13:41:31 +08:00
kangfenmao
ba65ce74cc feat: Improve knowledge base threshold tooltip and input 2025-02-16 12:20:08 +08:00
kangfenmao
dbfdfa0655 chore: Update store migration for Coze minapp 2025-02-16 12:14:20 +08:00
Chen Tao
c3220a7d64 feat: 添加知识库匹配度阈值 (#1634)
* feat: 添加知识库匹配度阈值

* fix: 增加问答时知识库阈值

* feat: 当知识库未检索到数据时使用通用对话逻辑

* fix: add toast
2025-02-16 11:38:00 +08:00
Avan
912eb3c264 style: add bot.n.cn logo 2025-02-16 11:36:58 +08:00
Avan
1cd808a326 feat: add bot.n.cn 2025-02-16 11:36:58 +08:00
George·Dong
9dcc295ffc feat: Add Coze minapp 2025-02-16 10:38:28 +08:00
yangtb2024
ab4beb2d9b fix: 窗口较小时,工具显示适配问题 2025-02-16 10:35:45 +08:00
kassadin
97ea84a0a6 fix: unregister global shortcuts 2025-02-16 10:34:24 +08:00
jyeric
f4b4ef065b Fix: Font size and Latex problem, resolve CherryHQ#1034 CherryHQ#1596 (#1723) 2025-02-15 22:55:43 +08:00
Wenwei Lin
dc3c2ccb9c fix: add ellipsis in knowledge base item (#1718) 2025-02-15 22:51:07 +08:00
Wenwei Lin
9a38c97552 fix: support html file in knowledge base (#1703) 2025-02-15 22:50:05 +08:00
美兰十三
50727025c3 feature: add topic prompt (#1696)
* feat: 新增话题补充提示词

* feat: 新增话题补充提示词

* feat: 新增话题补充提示词

* feat: 新增话题补充提示词

* feat: 新增话题补充提示词
2025-02-15 08:21:59 +08:00
icinggslits
80a2fdc812 调整show_app快捷键功能的交互逻辑 2025-02-15 08:17:18 +08:00
kangfenmao
7cee1a2bbf Revert "fix: 网页链接附带中文标点解析错误"
This reverts commit eb9edc10b8.
2025-02-15 01:30:13 +08:00
kangfenmao
cab7318c77 fix: Improve handling of 'undefined' values in JSON parsing 2025-02-15 01:25:59 +08:00
eeee0717
eb9edc10b8 fix: 网页链接附带中文标点解析错误 2025-02-15 01:06:32 +08:00
kangfenmao
160872e1c4 feat: Add LM Studio and ModelScope as system LLM providers
- Update llm.ts to include LM Studio and ModelScope in initial system providers
- Modify migrate.ts to add migration logic for adding these new providers
- Ensure providers are added only if they don't already exist in the configuration
2025-02-15 01:03:09 +08:00
kangfenmao
3752dbd962 fix: Correct migration version configuration 2025-02-15 00:55:07 +08:00
Yihong Wang
0dab0fe437 feat: Add NotebookLM to MinApps solve #1679 2025-02-15 00:52:47 +08:00
eeee0717
9d4b6d07fd fix: 分组和非分组逻辑修改 2025-02-15 00:33:39 +08:00
eeee0717
25acc20a32 fix: Switching model does not work 2025-02-15 00:33:39 +08:00
ousugo
b0ba66f708 feat: Improve textarea cursor positioning on focus 2025-02-15 00:31:36 +08:00
ousugo
efba601f0f fix: Improve the @ model list experience
- 修复使用方向键上下移动时,列表不随之滚动的问题
- 添加滚动条
2025-02-15 00:29:32 +08:00
Konjac-XZ
5b03d99655 fix: Translation error when passing empty user messages to certain models.(Refined) 2025-02-15 00:24:17 +08:00
kangfenmao
6e889f4cca refactor: Improve provider removal logic in LLM store 2025-02-14 14:49:34 +08:00
ousugo
382b4570cf perf: Add new Infini AI models to system models list 2025-02-14 14:37:57 +08:00
ousugo
c83797fca4 feat: Add reasoning model filter in EditModelsPopup 2025-02-14 14:30:48 +08:00
kangfenmao
12c47102ea refactor: Improve provider settings and menu handling 2025-02-14 13:35:58 +08:00
kangfenmao
094d6f7dcd style: Adjust group menu bar styling 2025-02-14 13:18:16 +08:00
kangfenmao
b25137cfbb feat: Add ModelScope provider to LLM providers list 2025-02-14 13:13:32 +08:00
Col0ring
60205f1fa0 feat: add modelscope provider (#1563)
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-02-14 13:12:46 +08:00
kangfenmao
fef2acf712 feat(notion): Add divider to Notion settings page 2025-02-14 13:08:47 +08:00
Trey Dong
f44e7e6a14 feat(notion): 添加 Notion连接检查功能 (#1620)
- 在 Notion 配置页面添加"检查"按钮
- 实现 Notion 连接检查逻辑
- 添加相关国际化文本
2025-02-14 10:52:16 +08:00
hehua2008
b1d577a0ac feat: Add LM Studio support (#1572)
Co-authored-by: hehua2008 <hegan2010@gmail.com>
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-02-14 10:49:57 +08:00
FischLu
b532e19e68 feat: Implement circular selection in model selector 2025-02-14 10:40:03 +08:00
Asurada
2674cca6f0 feat: Add XiaoYi miniapp, resolve #1591 (#1595)
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2025-02-14 10:37:42 +08:00
ousugo
fbd331fdf2 feat: Improve model search by adding name-based filtering, resolve #1520
搜索模型时,同时搜索模型的名字和 ID
2025-02-14 10:32:34 +08:00
kangfenmao
e449248846 chore: Update Vite config and remove deprecated migration code
- Exclude additional chunk in Electron Vite configuration
- Remove outdated migration logic for providers and MinApps
2025-02-14 10:31:24 +08:00
首都爱护动物协会
934b32fb46 add providers
新增服务商:
1.无问芯穹
2Perplexity
3.DMXAPI

补充部分embedding模型信息
2025-02-14 10:28:52 +08:00
shniubobo
412c449648 fix: Regression on reasoning time
PR #1253 fixed reasoning time calculation for APIs that return reasoning
content in `delta.content`, but introduced a regression for those
returning it in `delta.reasoning_content`. This commit fixes the
regression.

Fixes #1593
2025-02-14 10:26:54 +08:00
shniubobo
b846b809f2 fix: Remove trailing newline in codeblocks 2025-02-14 10:10:30 +08:00
Xin Rui
11e2a48f79 fix: translation error when passing empty user messages to certain models.. (#1612) 2025-02-14 10:09:47 +08:00
kangfenmao
9b74e88884 feat: Enhance file processing and loader configuration
- Remove image loader from dependencies
- Update file loading to skip image, video, and audio files
- Add logging for knowledge base file processing
- Modify common file extensions list
- Add type ignore for LocalPathLoader to resolve TypeScript issues
2025-02-13 17:49:06 +08:00
kangfenmao
6889ddbefc feat: Add file type not supported error message in multiple languages 2025-02-13 16:41:48 +08:00
kangfenmao
a9ee7c1d2b fix: Reset MinApp onClose handler when closing the app 2025-02-13 16:10:46 +08:00
kangfenmao
6e16ef9cc6 refactor: Remove unused onMaxTokensChange function 2025-02-13 14:02:36 +08:00
kangfenmao
ef633fca62 feat: Add useSidebarIconShow hook to conditionally render sidebar icons 2025-02-13 13:38:46 +08:00
kangfenmao
c5e31c9dfa feat: Add documentation link to sidebar with multilingual support 2025-02-13 13:27:25 +08:00
kangfenmao
dc82b3b970 feat: Improve token limit settings and knowledge base URL handling
- Update OpenAI package to version 4.77.3
- Add confirmation modal for max tokens setting
- Modify max tokens input to use InputNumber instead of Slider
- Update localization strings for max tokens and URL input
- Enhance knowledge base URL input to support multiple URLs
- Improve error handling and input validation
2025-02-13 13:12:51 +08:00
kangfenmao
0d8b8cf7e7 style: code format 2025-02-13 11:40:55 +08:00
Chen Tao
65596a355d feat: knowledge base support more file types (#1300)
* feat: knowledge base support more file types

* chore: add common document types

* feat: finish basic odloader

* feat: finish open document loader

* feat: support more type from dictionary

* fix: 删除目录时仍能检索到信息

* chore
2025-02-13 11:36:33 +08:00
Wenwei Lin
13a0fd0a65 fix: Label text was obscured in create agent page 2025-02-13 11:36:07 +08:00
Chen Tao
dab6271101 feat: add i18n sync script (#1538)
* feat: add i18n sync script

* chore
2025-02-13 11:34:23 +08:00
Asurada
c344261e17 feat: add google AI Studio minapp, resolve #832 (#1518)
* feat: add google AI Studio minapp, resolve #832

* fix: correct variable name for aistudio in migrateConfig
2025-02-13 11:28:51 +08:00
kangfenmao
5229cef35f feat: update AIHubMix OAuth and release workflow configuration 2025-02-12 18:24:57 +08:00
kangfenmao
fc1c49213b fix(i18n): use translation for API key error message 2025-02-12 18:24:39 +08:00
kangfenmao
60b462ae9d feat: remove auto reset model feature #1435
close #1435
2025-02-12 16:58:33 +08:00
kangfenmao
299cda7d44 feat: expand embedding model regex to include more model identifiers #1481
close  #1481
2025-02-12 16:39:35 +08:00
kangfenmao
52026c0772 feat: switch default math rendering engine to KaTeX #1485 2025-02-12 16:34:24 +08:00
kangfenmao
f748a1b274 fix(i18n): model exist error tip 2025-02-12 16:11:01 +08:00
kangfenmao
23bd78cc9c fix: openai o1 models not support max_token params
close #1378
close #1378
close #1340
close #1197
close #491
2025-02-12 15:59:42 +08:00
kangfenmao
4fe306d393 fix: doubao not support files type 2025-02-12 15:41:24 +08:00
kangfenmao
3229918d20 feat: WebDAV data backup and restore secondary confirmation #1326
close #1326
2025-02-12 15:19:21 +08:00
kangfenmao
19c8b484fd fix: update Ollama API endpoint URL 2025-02-12 14:56:59 +08:00
kangfenmao
5784f5bbd5 chore: update store migration and LLM providers 2025-02-12 14:52:45 +08:00
kangfenmao
f0b5a75387 docs: change knowledge base documents chunk max limit 2025-02-12 14:36:56 +08:00
cnJasonZ
ea4ce0c17c feat: add new model provider PPIO (#1359) 2025-02-12 14:14:56 +08:00
方程
1c7e6b979a feat: add gitee ai provider (#1473)
* feat: add gitee ai provider

* feat: add gitee ai provider

---------

Co-authored-by: 方程 <fangcheng@oschina.cn>
2025-02-12 14:11:13 +08:00
亢奋猫
387393555a feat: 🎸 使用@呼出模型选择列表 #1317 #1324 (#1458)
* feat: 🎸 使用@呼出模型选择列表

输入第一个字符为@符号的时候可以呼出选择模型的列表

* feat: 🎸 Only one can be chosen at a time

一次只能选择一个模型,选择后自动关闭。选择过的模型不在出现在列表,避免删除模型的时候显示异常。

* fix: 🐛 When choosing the model, Enter will send a message

* feat: 🎸 选中的模型显示供应商

* feat: 🎸 pinned module show privoder

* feat: 🎸 only selected modle show provider

* feat: 🎸 删除@符号以后自动关闭

* feat: 🎸 增加模糊搜索

---------

Co-authored-by: duanyongcheng77 <duanyongcheng77@gmail.com>
2025-02-12 14:08:18 +08:00
牡丹凤凰
1d960993c7 Update embedings.ts 2025-02-12 08:31:00 +08:00
牡丹凤凰
43dc4e85a7 Update zh-tw.json
更正繁体中文当中关于Temperature的描述
2025-02-12 08:30:34 +08:00
airwish
df34c48757 feat: expanded web search models 2025-02-12 08:30:00 +08:00
牡丹凤凰
b9641cd612 Update zh-tw.json (#1433)
助手菜单名称显示不全
2025-02-12 08:25:14 +08:00
linauror
83d96c7927 fix:针对思考类模型的返回,总结标题仅截取</think>之后的内容 (#1415) 2025-02-11 18:05:09 +08:00
Trey Dong
29b83862b7 feat: add pin topic feature (#1408)
* feat: 新增导出至Notion的选项

* fix:添加多语言支持

* fix:添加提示语的多语言支持,以及防止重复导入的状态

* fix:修复多语言错误及调整UI样式统一

* feat:添加话题固定功能
2025-02-11 16:51:58 +08:00
kangfenmao
3635952697 fix: upload button tooltip 2025-02-11 16:34:26 +08:00
lucifer9
832247bb77 feat: add support for clickable citations in message content (#1381)
* Add support for clickable citations in message content

* update format
2025-02-11 16:21:20 +08:00
kshern
7333bc4476 fix: retain selected model when regenerating message (#1382)
* fix: retain selected model when regenerating message instead of reverting to default model

* fix: use props model

---------

Co-authored-by: Shern <shenkeji@corp.netease.com>
2025-02-11 14:12:56 +08:00
Trey Dong
fa5522bbff feat: 增加导出话题至Notion的功能 (#1331)
* feat: 新增导出至Notion的选项

* fix:添加多语言支持

* fix:添加提示语的多语言支持,以及防止重复导入的状态

* fix:修复多语言错误及调整UI样式统一
2025-02-11 11:27:01 +08:00
Chen Tao
488ec9bb03 fix: 数据库文档个数变为默认6个#1366 #1370 2025-02-11 10:05:34 +08:00
美兰十三
ffd1d47277 fix: 快捷键无法绑定空格 2025-02-11 09:25:42 +08:00
Peter Chen
470ec81827 Update MessageThought.tsx 2025-02-10 16:48:47 +08:00
kangfenmao
6f4f7ed170 fix: store migrate version 2025-02-10 14:40:30 +08:00
Chen Tao
c2ce72cf54 feat: add translate selection (#1010)
* feat: add translate selection

* chore: add default translate value

* feat: optimize trigger translation shotcut and add TanslateLanguageVarious

* fix

* fix: add database migrate version
2025-02-10 13:19:46 +08:00
郑恩
51fa93e01e feat: 优化思考过程显示的换行效果 2025-02-10 13:17:32 +08:00
Fadouse
ce20ed724f fix: correct thinking time calculation for deepseek r1 2025-02-09 21:29:21 +08:00
Wenwei Lin
be65d66b88 feat: 知识库文件支持 html 类型 2025-02-09 21:27:15 +08:00
kangfenmao
b2e2f3b0f1 fix: Remove local network access switch and add insecure content loading 2025-02-09 10:14:35 +08:00
kangfenmao
32df17c229 fix: max chunk size 2025-02-09 09:32:40 +08:00
牡丹凤凰
193255cf54 Update embedings.ts
embedding models information
2025-02-09 09:31:01 +08:00
kangfenmao
9bca10774b chore(version): 0.9.20 2025-02-09 00:05:15 +08:00
kangfenmao
75d55e915c feat: Add support for SiliconFlow provider charge and knowledge base improvements 2025-02-08 23:53:28 +08:00
kangfenmao
0bce58e3b4 feat: Add HTTP error handling and localized error messages 2025-02-08 23:01:27 +08:00
kangfenmao
3e84a32199 feat: Make knowledge base reference document count configurable 2025-02-08 20:56:59 +08:00
kangfenmao
9313059aba feat: add knowledge base settings 2025-02-08 19:19:59 +08:00
kangfenmao
4d82d58752 feat: Add support for AIHubMix topup and charge functionality 2025-02-08 16:26:10 +08:00
magicdmer
ca02ac427f fix: 翻译的temperature改为0.7
improve: 模型特性默认支持的时候,打勾
2025-02-08 14:46:55 +08:00
kangfenmao
f8d9318dbc feat: enable local network access on macOS #1178 2025-02-08 10:58:12 +08:00
teaim
fb8baa5c09 fix: o3-mini markdown formatting #997 2025-02-08 07:33:27 +08:00
kangfenmao
c067b9f0dd feat: remove knowledge base references when deleting a base 2025-02-07 23:58:44 +08:00
kangfenmao
b67e907bc8 fix: update knowledge base button tooltip and input bar dependency 2025-02-07 23:38:25 +08:00
Chen Tao
e1cbb7d7f5 feat: add knowledge base settings to assistant (#1112)
* feat: #1047

* fix: allow clear
2025-02-07 23:20:22 +08:00
kangfenmao
1b00d5d3dc fix: sanitize error details by removing sensitive headers and stack trace 2025-02-07 23:05:27 +08:00
kangfenmao
27dd093043 fix: improve reasoning effort handling for different providers 2025-02-07 22:37:18 +08:00
kangfenmao
f62caba4e9 feat: add aihubmix oauth 2025-02-07 22:27:28 +08:00
Chris Wan
9fa5c7e8fa fix: temperature tip English translation 2025-02-07 18:34:27 +08:00
Yrom Wang
4f3aebe305 fix: KnowledgeSearchPopup keyword highlighting issue 2025-02-07 18:24:03 +08:00
kangfenmao
6c1768298d feat: expand supported Gemini models for web search #1096 2025-02-07 17:18:11 +08:00
kangfenmao
d906592431 feat: add baidu cloud provider 2025-02-07 16:47:29 +08:00
kangfenmao
98f21b0598 feat: Reposition ocoolAI provider in LLM store configuration 2025-02-07 13:29:07 +08:00
kangfenmao
05a0b0ff68 fix: remove QwenLM provider #1122
close #1122
close #886
2025-02-07 12:38:12 +08:00
gyuannn
f3d451fb23 feat: Improve handling of think tags 2025-02-06 13:43:06 +08:00
gyuannn
610171936c feat: optimize MessageThought to enhance user experience 2025-02-06 13:43:06 +08:00
kangfenmao
4114a44eaf feat: Add DeepSeek V3 model to Silicon provider 2025-02-05 21:34:55 +08:00
kangfenmao
d4ddcbfc5b feat: Enhance web search parameter handling for assistants #575 2025-02-05 20:35:25 +08:00
kangfenmao
62bcb0582e feat: Update VisionIcon from PictureOutlined to EyeOutlined 2025-02-05 20:21:26 +08:00
kangfenmao
9f101b614a feat: Add DeepSeek VL to vision allowed models #1015 2025-02-05 20:09:29 +08:00
kangfenmao
ee260230ff feat: Enhance model tags and icons with new reasoning and visual styles 2025-02-05 20:00:18 +08:00
shellming
f94a42a48f feat: Add 3MinTop to default mini apps 2025-02-05 16:16:37 +08:00
Gutsy Yuan
122171b03c feat: Add new model type for reasoning models & reasoning_effort setting (#992) 2025-02-05 16:15:31 +08:00
kangfenmao
9dadef6df3 feat: add support for o1 models and update provider configurations 2025-02-05 16:14:35 +08:00
kangfenmao
909e88f8a3 chore(version): 0.9.18 2025-02-04 22:37:31 +08:00
kangfenmao
8c1ae0b950 feat: improve error message display for embedding dimensions retrieval 2025-02-04 17:25:24 +08:00
kangfenmao
66a13b1132 feat: improve error handling and formatting across providers 2025-02-04 16:45:09 +08:00
kangfenmao
5211ed657a fix: oauth error 2025-02-04 16:45:03 +08:00
Lei Huang
e49b3e8173 fix: prompt-injection-like behavior in translation #956 (#974)
* fix: prompt-injection-like behavior in translation #956

* fix: edit translation prompt to embded text to system prompt
2025-02-04 15:49:17 +08:00
亢奋猫
76b9af20ce feat: add oauth for siliconflow (#976)
* wip: silicon oauth

* feat: Add custom protocol handler for SiliconFlow OAuth login

* feat: Improve SiliconFlow OAuth flow with dynamic key update

* feat: Enhance OAuth and Provider Settings UI

* feat: Refactor SiliconFlow OAuth and update localization strings

* chore: Update provider localization and system provider configuration

* feat: Add OAuth support for AIHubMix provider
2025-02-04 15:41:40 +08:00
kangfenmao
f4ac3bd2a8 feat: support for vba code mode #949
close #949
2025-02-04 13:22:41 +08:00
kangfenmao
c2c17230d0 feat: add mention model title to locales 2025-02-04 13:00:31 +08:00
kangfenmao
73a092ffe9 feat: reduce embedding batch size to 5 2025-02-04 12:35:42 +08:00
kangfenmao
7e94058199 feat: update text-to-image model regex to include Janus 2025-02-04 12:28:17 +08:00
kangfenmao
1f0d7687f1 feat: update text-to-image models with new FLUX and Stable Diffusion variants 2025-02-04 12:21:58 +08:00
kangfenmao
731bbfcda5 feat: add Janus model to vision allowed models 2025-02-04 12:11:14 +08:00
kangfenmao
e42d6d4219 feat: adjust translation assistant temperature 2025-02-04 12:06:06 +08:00
eeee0717
7f86e9ceeb feat: add Janus-Pro-7B for silicon 2025-02-04 00:13:41 +08:00
Kcalb35
966c2df6ba fix: translation issue #900 2025-02-03 17:26:31 +08:00
Shenghang Tsai
7d6b5f8cce default use r1 in silicon 2025-02-03 15:06:50 +08:00
kangfenmao
9fac01c313 fix: reset knowledge base selection when switching assistants 2025-02-03 13:45:21 +08:00
kangfenmao
90b8d704c9 feat: add azure provider type #931 2025-02-03 13:37:09 +08:00
kangfenmao
99fd08184b feat: change DEFAULT_TEMPERATURE to 1.0 2025-02-03 11:57:26 +08:00
kangfenmao
8f18476f9a feat: openrouter reasoning field and include_reasoning key #863 2025-02-03 11:48:46 +08:00
kangfenmao
236f25df8a feat: add regenerate message button 2025-02-03 11:18:55 +08:00
kangfenmao
089375c822 fix: add model input max length 2025-02-03 10:52:21 +08:00
kangfenmao
ca5912b121 feat: add knowledge base settings popup 2025-02-03 09:22:59 +08:00
Wenwei Lin
6cf4349fcf fix: OpenAI o3-mini 无法使用 2025-02-02 00:17:00 +08:00
牡丹凤凰
3efdfcf816 Update models.ts
Match the avatar of the o3-mini
2025-02-01 04:38:25 +08:00
gyuannn
656d6da581 fix: 修复 mini-app 中无法使用 context-menu 的问题 2025-01-29 10:33:44 +08:00
Nanami
cdcb19320c feat: Support configurable chunk size and overlap for knowledge base 2025-01-27 12:30:22 +08:00
Nanami
d3e868550c feat: Support configurable chunk size and overlap for knowledge base 2025-01-27 12:30:22 +08:00
kangfenmao
6d3eed2a6a feat: add delete group message confirm modal 2025-01-24 13:13:00 +08:00
kangfenmao
ba0db528f8 fix: resend message logic 2025-01-24 13:02:57 +08:00
kangfenmao
6ea456d452 fix: siliconflow image url with query params #844
close #844
2025-01-24 09:31:31 +08:00
kangfenmao
1d274b0a99 chore(migration): update version and adjust provider type for QwenLM #833
- Incremented version from 60 to 61 in the persisted reducer configuration.
- Updated migration logic to change the provider type for 'qwenlm' from 'openai' to 'qwenlm', ensuring correct identification in the state management.
2025-01-23 13:20:15 +08:00
hxp0618
1b55dcc17b fix: apikey and ApiHost incorrectly set to empty 2025-01-23 08:30:07 +08:00
hobee
516f0bd383 feat: add new minimax model configuration 2025-01-23 08:29:48 +08:00
kangfenmao
9ed7d1f657 chore(version): 0.9.16 2025-01-22 16:32:57 +08:00
kangfenmao
7b7372e6ee fix: group message bugs 2025-01-22 16:29:05 +08:00
kangfenmao
de3fad0d6a feat: enhance message model handling and user display
- Updated Message component to fallback to message.model if model retrieval fails, improving robustness.
- Refactored MessageHeader to utilize getModelName for better user name display based on message role, enhancing clarity.
- Introduced getModelName function in ModelService to streamline model name retrieval, improving code modularity and readability.
2025-01-22 15:08:44 +08:00
kangfenmao
07d3d8518b feat: enhance agent management and UI in AddAssistantPopup and AgentsPage
- Updated AddAssistantPopup to improve layout and styling, ensuring better overflow handling and text display.
- Refactored AgentsPage to utilize a new utility function for grouping agents, enhancing data management and organization.
- Exported getAgentsFromSystemAgents function for better modularity and reusability across components.
2025-01-22 14:47:35 +08:00
kangfenmao
734a1a37b4 feat: enhance translation functionality in MessageMenubar
- Updated translateText function to accept an optional callback for handling translated text directly within the function.
- Refactored MessageMenubar to utilize the new callback mechanism, improving the flow of translated content handling.
- Enhanced error handling during translation to ensure better user feedback in case of failures.
2025-01-22 14:37:15 +08:00
kangfenmao
e35af87035 feat: add file reading functionality and integrate system agents
- Introduced FileService to handle file reading operations via IPC.
- Implemented a new IPC handler for reading files, enhancing the application's ability to access and manage data.
- Integrated system agents from a JSON file, allowing dynamic loading of agent data into the application.
- Updated the AgentsPage and AddAssistantPopup components to utilize the new system agents, improving user experience and functionality.
- Enhanced application state management by adding resourcesPath to the runtime state, ensuring proper resource handling across components.
2025-01-22 14:35:38 +08:00
kangfenmao
bc221904de refactor: unify message model handling across components
- Replaced direct usage of modelId with model object in Message, MessageHeader, MessageMenubar, and TranslatePage components for consistency.
- Introduced getMessageModelId utility function to streamline model retrieval from messages.
- Updated event handling in Messages component to align with new model structure.
- Enhanced code readability and maintainability by reducing redundancy in model handling.
2025-01-22 13:29:21 +08:00
kangfenmao
f6165060c7 feat: conditionally render resend button in MessageMenubar
- Updated MessageMenubar to display the resend button only for user messages, enhancing user experience and preventing unnecessary actions for other roles.
- Refactored the children prop of TextEditPopup to include conditional rendering logic based on message role.
2025-01-22 12:26:40 +08:00
kangfenmao
68a5608a14 feat: enhance message grouping and styling
- Added new styles for message thought containers and group message wrappers to improve UI layout.
- Updated MessageGroup component to dynamically set the selected message index based on message length.
- Introduced a new event for appending messages, enhancing message handling capabilities.
- Refactored MessageMenubar to support the new append message functionality.
- Adjusted multi-model message style setting to 'fold' for better user experience.
- Improved responsiveness of message grid layout for smaller screens.
2025-01-22 12:04:21 +08:00
kangfenmao
5a1f026271 feat: streamline language translation options in MessageMenubar
- Replaced hardcoded language translation options with a dynamic mapping from TranslateLanguageOptions.
- Improved maintainability and scalability of the translation feature by utilizing a centralized configuration for language options.
2025-01-22 10:18:19 +08:00
kangfenmao
c3691cb9e0 feat: add FlagOpen logo to model configuration
- Introduced a new image asset for the FlagOpen model in the assets directory.
- Updated the models configuration to include the FlagOpen logo, allowing for its use in the model logo mapping.
2025-01-22 10:05:50 +08:00
kangfenmao
91d363e6a3 refactor: improve message rendering and add reasoning content extraction
- Refactored `getMessageBackground` function for better readability.
- Updated `MessageContent` component to use a new `withMessageThought` utility for extracting reasoning content from messages.
- Changed fragment usage to `Fragment` for consistency in JSX.
- Enhanced message handling by separating reasoning content from the main message content.
2025-01-22 09:50:29 +08:00
duanyongcheng77
4fd0393b4d fix: 🐛 fixed bug #779
助手的预设消息保存逻辑的修改
2025-01-21 22:06:52 +08:00
kangfenmao
f3deea48ec feat: add group message action bar 2025-01-21 17:58:34 +08:00
Teo
77bf062f7a chore(version): update version to 60 and add migration for multiModelMessageStyle setting 2025-01-21 15:16:18 +08:00
Teo
00665179b0 refact: 多模型回答优化 2025-01-21 15:16:18 +08:00
kangfenmao
23a59578c3 fix: regenerate message not rewrite reasoning_content 2025-01-21 15:15:55 +08:00
kangfenmao
d4d769261d feat: add deepseek-reasoner model support 2025-01-21 14:28:01 +08:00
kangfenmao
5b214c1b94 feat(miniwindow): add up and down key switch menu #792 2025-01-21 10:11:42 +08:00
Cololi
af9a4e80c0 feat: add deepseek-reasoner & delete deepseek-coder 2025-01-21 10:05:21 +08:00
ousugo
0e28bb1e29 feat: add WebDAV backup hour options and optimize english hour translations 2025-01-21 08:38:08 +08:00
kangfenmao
757b1856db feat: update minapp url to 'https://grok.com' #791
close #791
2025-01-20 16:53:33 +08:00
kangfenmao
fcaff8e3eb fix: added warning for manual download on failed auto updates, simplified window lifecycle 2025-01-20 13:56:25 +08:00
kangfenmao
42c6084c03 chore(version): 0.9.13 2025-01-20 13:11:26 +08:00
kangfenmao
9f268c7897 feat: add onclick event to login icon in footer component 2025-01-20 12:57:26 +08:00
kangfenmao
e577b79ecb feat: extended safety threshold check to include 'thinking-exp' model ids 2025-01-20 12:55:24 +08:00
kangfenmao
7c4555eed0 feat: update contact email address 2025-01-20 12:20:46 +08:00
kangfenmao
7845c676f1 chore(version): 0.9.12 2025-01-20 11:52:26 +08:00
kangfenmao
c6a501f8fb feat: added copy last message feature and translations 2025-01-20 11:09:57 +08:00
kangfenmao
f56d2b9661 feat: added utility function, sorting, and new shortcut 2025-01-20 10:29:44 +08:00
kangfenmao
adf8c34ded feat: enable pinned functionality for minapps and update 'flowith' configuration 2025-01-20 09:58:47 +08:00
kangfenmao
c67904b925 fix: prevent unnecessary route changes and trim input field on change 2025-01-20 09:52:58 +08:00
ousugo
80ad18e90f fix: conditionally render pin button based on app ID 2025-01-20 09:32:13 +08:00
ousugo
18a8ab9482 feat: add Flowith minapp, resolve #780 2025-01-20 09:31:34 +08:00
MrChen
276455d4c2 feat: add the shortcuts for 'clear' and 'new context' and fix (#786)
* Fix: ESC key to exit the expanded editor

* Add the shortcuts for 'clear' and 'new context' to the input bar
Clear Messages: Ctrl+L
New Context: Ctrl+R
https://github.com/CherryHQ/cherry-studio/issues/740
https://github.com/CherryHQ/cherry-studio/issues/766

* Fix: the paste issue when copying from an email (content was pasted as an image; ensure it is pasted as text). Prioritize the text in the clipboard during pasting.
2025-01-20 09:31:09 +08:00
kangfenmao
13ea20083d chore(version): 0.9.11 2025-01-19 20:50:33 +08:00
kangfenmao
30b1d12909 fix: quick assistant bugs 2025-01-19 20:03:45 +08:00
kangfenmao
6692f6035d feat: add a startup switch for quick assistant 2025-01-19 19:22:25 +08:00
kangfenmao
616a3672ba feat: translate support stream output 2025-01-19 16:56:35 +08:00
kangfenmao
80ebf768c3 feat: auto-scroll to selected menu item on model open 2025-01-19 15:47:19 +08:00
kangfenmao
596b30d4d9 refactor: add qwenlm provider 2025-01-19 15:39:48 +08:00
kangfenmao
6a79827fd7 fix: store minapp url use base64 data image 2025-01-19 15:35:17 +08:00
kangfenmao
0f3c7aa648 feat: add mini window 2025-01-19 13:59:32 +08:00
ousugo
71ccea9114 feat: add pinning functionality for MinApp component 2025-01-19 13:59:06 +08:00
ousugo
f5516ac322 fix: fix wrong NVIDIA official website link, fix #771 2025-01-19 13:59:06 +08:00
kangfenmao
8f3c5b477b fix: remove default message for webdav backup initiation 2025-01-19 13:59:06 +08:00
kangfenmao
ce7b0fcc5a style: increased padding at the bottom of the sidebar component 2025-01-19 13:59:06 +08:00
kangfenmao
46641faf38 fix: WebDAV not automatic backup on app reopened #752 2025-01-19 13:59:06 +08:00
kangfenmao
9e4bf0214a feat: auto focs input textarea #759
close #759
2025-01-19 13:59:06 +08:00
kangfenmao
61f8af8910 feat: improved 'my agents' list rendering 2025-01-19 13:59:06 +08:00
magicdmer
65b60d7cfa perf: 优化智能体页面性能和体验 (#756)
* feat: improved model validation and error handling

* refactor: 优化智能体页面下拉流畅度和分类切换效果,让其更加顺畅自然

---------

Co-authored-by: kangfenmao <kangfenmao@qq.com>
Co-authored-by: magicdmer <magicdmer@163.com>
2025-01-19 13:59:06 +08:00
kangfenmao
f3c13a4070 refactor: improved code organization and reusability 2025-01-19 13:59:06 +08:00
kangfenmao
ad752900ba feat: improved model safety settings for geminiprovider class 2025-01-19 13:59:06 +08:00
magicdmer
551ec07a4a refactor: (GeminiProvider) optimize safety settings handling
- Extract safety threshold logic into getModelSafetySetting method
- gemini-exp-* models not support 'OFF', must use 'BLOCK_NONE'
2025-01-19 13:59:06 +08:00
kangfenmao
7893edf70e feat: update harmblockthreshold for harm_category_civic_integrity 2025-01-19 13:59:06 +08:00
kangfenmao
a8536cf296 feat: add civic integrity category to harm block settings in GeminiProvider 2025-01-19 13:59:06 +08:00
kangfenmao
2fd2ec8b6e feat: update safety settings for specific categories #696
Gemini安全设置是否没有完全关闭
2025-01-19 13:59:06 +08:00
kangfenmao
cdb7aaca4d feat: replaced visionicon with modeltags 2025-01-19 13:59:06 +08:00
kangfenmao
5ad8c19a0d feat: add 思维链(CoT) agent 2025-01-19 13:59:06 +08:00
kangfenmao
e17e9bfe40 fix: improved openai provider model id validation logic 2025-01-19 13:59:06 +08:00
magicdmer
da81b048dd fix: 修正o1模型无法使用的问题 2025-01-19 13:59:06 +08:00
kangfenmao
25448beb92 fix: remove specific unicode characters from removespecialcharacters function 2025-01-19 13:59:06 +08:00
Linjun
053dd647ec fix issue#762: upon clicking to resend, the conversation content is cleared.
If there is no subsequent message or if the next message is from the user, this message should be resent. delete the old message after processing is complete.
2025-01-19 12:26:55 +08:00
kangfenmao
6f21844603 feat: improved model validation and error handling 2025-01-16 10:14:32 +08:00
Nanami
70666df135 fix: qwenlm context error 2025-01-15 09:09:01 +08:00
kangfenmao
ce605e42c5 fix: artifacts cannot preview 2025-01-14 23:27:54 +08:00
kangfenmao
70ae5044d2 refactor: improved type safety and consistency for file handling 2025-01-14 21:02:55 +08:00
kangfenmao
da2bc3af17 refactor: update model group names and sync interval 2025-01-14 20:53:52 +08:00
kangfenmao
3be32e5f7e fix: fix model type logic based on provider properties 2025-01-14 20:32:04 +08:00
Nanami
82266800e6 feat: add support for qwenlm and image upload (#726)
* feat: add support for qwenlm and image upload

* fix: qwenlm return

* feat: add provider config
2025-01-14 18:59:19 +08:00
Teo
69f1f2ea71 feat: 添加模型提及功能,支持多个模型一起回答 2025-01-14 17:46:55 +08:00
kangfenmao
5aed454a62 chore: update store version and migration 2025-01-14 14:34:36 +08:00
kangfenmao
17e3a966dd style: update markdown link text color 2025-01-14 13:54:10 +08:00
kangfenmao
f860503d96 fix: improved input validation and debouncing for assistant settings updates 2025-01-14 13:18:34 +08:00
kangfenmao
b1b9898eb1 feat: add grounding source info to gemini message 2025-01-14 12:32:50 +08:00
kangfenmao
32a0047a1d feat: auto focus search input box #705
close #705
2025-01-13 18:09:59 +08:00
kangfenmao
fd7de97b12 feat: add native app regions support 2025-01-13 18:06:22 +08:00
kangfenmao
64e3da4225 style: update pinned apps style and refactor config model 2025-01-13 17:56:16 +08:00
kangfenmao
348d0fb06a feat: add refresh icon to knowledge base items #567
close #567
2025-01-13 17:42:59 +08:00
kangfenmao
662742c958 feat: added openai model configuration and search parameter logic 2025-01-13 16:42:53 +08:00
kangfenmao
d0cb1c5d86 feat: check api use selected model 2025-01-13 16:11:09 +08:00
kangfenmao
812ae5883c fix: enforce max tokens above 0 in assistantservice #530 2025-01-13 15:03:37 +08:00
kangfenmao
ae9b574567 feat: csv download #710
close #710
2025-01-13 14:44:30 +08:00
kangfenmao
93b5e628b3 refactor: update terminology to 'backup' throughout the application 2025-01-13 14:00:35 +08:00
kangfenmao
ac6faaf23e feat: add qwenlm minapp 2025-01-13 13:52:45 +08:00
kangfenmao
0aef439c08 refactor: sidebar minapps 2025-01-13 13:04:01 +08:00
hxp0618
4651412aa8 feat: MinApp added to the sidebar does not support direct hiding. 2025-01-13 10:13:47 +08:00
hxp0618
153d36fcbb feat: Adjust the order of settings 2025-01-13 10:13:34 +08:00
hxp0618
9423403c5c feat: minApp supports show/hide, add to the sidebar 2025-01-13 10:13:34 +08:00
王瑞
69ec906df4 feat: add Grok app logo and configuration 2025-01-12 22:33:46 +08:00
kangfenmao
aa73526ba4 chore(version): 0.9.6 2025-01-09 16:23:29 +08:00
kangfenmao
aa40df2cfd fix: create agent popup error 2025-01-09 09:15:16 +08:00
kangfenmao
7d393deda7 chore(version): 0.9.5 2025-01-08 16:52:03 +08:00
kangfenmao
1a4dc3aafd fix: window navbar layout 2025-01-08 14:35:48 +08:00
kangfenmao
be2d18be1d style: update container component styling and navbar responsiveness 2025-01-08 13:25:34 +08:00
kangfenmao
322ba29c8d feat: narrow layout 2025-01-08 12:44:01 +08:00
kangfenmao
ccd3becc87 style: adjusted padding and container gap styles 2025-01-08 11:06:51 +08:00
kangfenmao
17f1a24433 fix: removed unnecessary conditional logic for attachment button #667 2025-01-08 10:56:22 +08:00
kangfenmao
7fb9a34f7d Revert "fix:修复单行CodeBlock中显示sub"
This reverts commit d808b6dffc.
2025-01-08 10:46:35 +08:00
kangfenmao
cd5c1b4797 refactor: refactor upload component layout and styling for responsiveness #674
fix: 当插入文件过多的时候,无法看到输入框了。 close #674
2025-01-08 10:21:17 +08:00
kangfenmao
1229917e4c fix: update model filtering logic to exclude empty ids #493
close #493
2025-01-08 10:00:23 +08:00
kangfenmao
509566dc07 fix: @google/generative-ai local compilation issue #682
close #682
2025-01-07 23:18:18 +08:00
亢奋猫
169fb519e1 feature: customizable sidebar module #644 (#680)
* feat:对话的时候支持侧边栏拖拽调整宽度

* feat:对话的时候支持侧边栏拖拽调整宽度

* feat: 隐藏app sidebar 用户体验度提升,不支持隐藏对话

* fix:对话勾选知识库 国际化错误

* refactor: split the SidebarIconsManager module out of DisplaySettings

* style: update SidebarIconsManager style

* ci: fix typecheck

* Revert "feat:对话的时候支持侧边栏拖拽调整宽度"

This reverts commit 58072128f0.

* refactor: merge migrate versions

* refactor: simplify sidebarIcons data structure

* chore: move react-beautiful-dnd to dev dependencies

* chore: use @hello-pangea/dnd replace react-beautiful-dnd

* docs: update translation and formatting of input messages

---------

Co-authored-by: hxp0618 <1169924772@qq.com>
Co-authored-by: huang <hxp0618@gmail.com>
2025-01-07 19:11:12 +08:00
kangfenmao
b4da93da74 feat: add gemini files support 2025-01-07 16:49:11 +08:00
kangfenmao
952b912b8a feat: add optional free model tag display 2025-01-07 11:23:32 +08:00
kangfenmao
20ade3003e feat: enable web search for zhipu ai provider #657 2025-01-07 10:53:34 +08:00
kangfenmao
7cadb0017c fix: improved error message formatting in api service 2025-01-07 10:19:21 +08:00
kangfenmao
abf4d90f4e feat: add ModelTags component 2025-01-07 09:54:22 +08:00
kangfenmao
94291e0d6f feat: add support for 'aihubmix' models and aihubmix llm provider 2025-01-07 09:46:05 +08:00
kangfenmao
30ff19a78c feature: customizable sidebar module #644
close #644
2025-01-06 16:59:10 +08:00
kangfenmao
c2d5d54922 feat: add search message shortcut #366 2025-01-06 16:29:39 +08:00
kangfenmao
3f44e1e4ac fix: the minimum width limit of the window is too large #544
close #544
2025-01-06 16:25:00 +08:00
kangfenmao
5ffc581a0a fix: generating topic name after exporting prompt file name is invalid #641
close #641
2025-01-06 15:50:57 +08:00
kangfenmao
cf0aeb0735 fix: Ollama is unable to create a knowledge base using a local embedding model #630 2025-01-06 15:43:20 +08:00
kangfenmao
a0b3998d0c fix: turn off spell check #648
The next version will be released. close #648
2025-01-06 15:10:03 +08:00
kangfenmao
308bafe29e feat: added optional chaining for code variable 2025-01-06 14:54:04 +08:00
xx-moos
404dfb3fa4 fix: 修复 message 显示时间过长的问题 2025-01-06 14:43:31 +08:00
kangfenmao
b1ec4b0181 style: border radius use var 2025-01-04 22:50:44 +08:00
kangfenmao
e95673349b style: logo v3
# Conflicts:
#	src/renderer/src/assets/images/logo.png
2025-01-04 21:52:05 +08:00
huang
2e7f8f77f3 feat: 支持 mermaid 点击按钮放大缩小以及鼠标滑轮放大缩小 2025-01-04 19:17:39 +08:00
huang
368bff3e59 feat: 支持 mermaid 点击按钮放大缩小以及鼠标滑轮放大缩小 2025-01-04 19:17:39 +08:00
huang
248aae3f4b fix: 修复在macOS m1 中点击全屏幕后,点击关闭后黑屏的问题 2025-01-04 19:17:39 +08:00
kangfenmao
201a66b5b2 fix: Qwen2.5和Qwen的划分不合理 #633 2025-01-03 18:05:01 +08:00
huang
0239a03219 fix: 中文国际化错误 2025-01-03 17:35:17 +08:00
kangfenmao
f2fa786c19 chore(version): 0.9.4 2025-01-02 21:34:30 +08:00
kangfenmao
6f99a0b8fa feat: add translations and file management features 2025-01-02 18:29:36 +08:00
kangfenmao
a3be8a80d9 feat: update assistantmodelsettings to persist custom parameters 2025-01-02 17:21:33 +08:00
kangfenmao
2d8307a9df feat: improved form validation and model addition functionality 2025-01-02 16:58:58 +08:00
kangfenmao
6d191f86b6 refactor: improve model generation and handling functionality 2025-01-02 16:39:30 +08:00
kangfenmao
e63d360647 fix: 腾讯混元的联网开关 #575 2025-01-02 16:26:24 +08:00
kangfenmao
555e015836 feat: add more classname 2025-01-02 16:25:50 +08:00
kangfenmao
13a1e866e6 fix: 重新发送按钮无反应 #587 2025-01-02 15:42:47 +08:00
kangfenmao
35bf25c6be feat: paintings add prompt enhancement params 2025-01-02 14:51:52 +08:00
kangfenmao
c0d9805c45 feat: added error handling and knowledge base provider support 2025-01-02 14:16:37 +08:00
kangfenmao
64a1d95d08 feat: add new branch option to message menubar 2025-01-02 13:41:51 +08:00
kangfenmao
21e4a0acd2 style: adjusted padding and border styles in settingsgroup component 2025-01-02 13:37:04 +08:00
kangfenmao
fe58723b10 feat: custom parameters add json type 2025-01-02 13:34:21 +08:00
kangfenmao
c777436a81 feat: improved translation features and settings 2025-01-02 12:21:22 +08:00
zhouxl
d808b6dffc fix:修复单行CodeBlock中显示sub 2025-01-02 11:47:34 +08:00
kangfenmao
1b0830b4cc chore: update hika app assets and styles 2025-01-02 11:18:15 +08:00
kangfenmao
2ef62f21ab feat: add sync status show 2025-01-02 11:07:20 +08:00
YongHao Hu
f32bf7d4f2 feat: add hika minapp 2025-01-02 11:06:57 +08:00
kangfenmao
f97bd4d91f fix: reduce batch size for knowledge service and openai embeddings 2024-12-31 14:41:08 +08:00
kangfenmao
9c99560f6e chore(version): 0.9.3 2024-12-31 00:38:20 +08:00
kangfenmao
5c587ef766 fix: 知识库无法向量化 MD 文件 #569 2024-12-31 00:11:51 +08:00
kangfenmao
b7cfb35dc0 feat: 增加保持并发送的功能 #527 2024-12-30 14:09:59 +08:00
kangfenmao
6bab09a669 feat: 增加genspark小程序 #578 2024-12-30 13:10:27 +08:00
juzeon
189e70b46d fix: 修复zh-tw语言文件中的乱码 (#579) 2024-12-30 11:49:40 +08:00
n2yt584v2t4nh7y
9595daf076 feat: 添加自定义API参数功能 (#564)
* add custom api parameters

* allow more data types for custom api parameters

* pass parameter to api payload

* add custom parameter settings to sidebar

* remove unnecessary object and array types

* extract API custom parameter method to BaseProvider

* add i18n for custom parameter settings

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
2024-12-29 20:19:07 +08:00
kangfenmao
c64fb00003 feat: 用户自定义话题总结Prompt #562
close #562
2024-12-29 10:20:45 +08:00
kangfenmao
c854b0ff16 feat: add release notes pages 2024-12-29 09:49:22 +08:00
littel_penguin66
e710937bd9 Fix incorrect synchronization behavior of webdav auto sync (#568) 2024-12-29 08:44:21 +08:00
kangfenmao
397f8a6bc6 fix: 模型名后面标注一下服务商 #557 2024-12-27 18:09:22 +08:00
kangfenmao
dc13c182e3 fix: model settings params step size 2024-12-27 16:47:44 +08:00
kangfenmao
c08f854889 feat: add jina provider 2024-12-27 16:29:17 +08:00
kangfenmao
7efb278353 fix: 需要只发送图片功能 #538 2024-12-27 14:40:44 +08:00
sommermorgentraum
a74d43fd40 feat: Add capabilities for user to load custom CSS #548 2024-12-27 14:11:12 +08:00
kangfenmao
8bc100962b fix: azure openai embedding 2024-12-27 14:02:53 +08:00
kangfenmao
628d652c47 chore: update dependencies and improve project structure 2024-12-27 12:42:17 +08:00
kangfenmao
4c47c324ab fix: 小程序中增加 github copilot #547 2024-12-27 12:10:41 +08:00
kangfenmao
b1096b5387 fix: 某些输出包含 sub 无法正常显示 #545 2024-12-27 11:54:11 +08:00
kangfenmao
060302ab39 feat: added topic message update and search state management 2024-12-27 11:48:12 +08:00
kangfenmao
4d5c4ddc4f feat: add embeding tag to settings 2024-12-26 12:25:58 +08:00
kangfenmao
dc657c4d49 refactor: knowledge base engine change to libsql 2024-12-26 10:00:37 +08:00
littel_penguin66
b706892d7a Add Japanese localization for i18n (#533) 2024-12-25 22:04:29 +08:00
kangfenmao
80fb1c0b13 fix: knowledge base bugs 2024-12-25 21:54:46 +08:00
kangfenmao
086475c883 refactor: knowledge base database engine 2024-12-25 17:42:03 +08:00
Tan Xiang
6e4db56028 fix: shortcut tips (#525) 2024-12-24 23:09:54 +08:00
kangfenmao
f9220d4fac fix: gemini web serach modal 400 request error 2024-12-24 18:00:25 +08:00
kangfenmao
cbe6f4c35e fix: linux window title style 2024-12-24 14:43:32 +08:00
kangfenmao
f4efd118cb feat: update models inside 2024-12-24 13:27:40 +08:00
kangfenmao
b8fa613af5 fix: knowledge base bugs 2024-12-24 12:41:58 +08:00
kangfenmao
705db03290 patch: @llm-tools 2024-12-24 12:11:07 +08:00
kangfenmao
f9381607e6 feat: added webdav auto-sync settings synchronization and custom show message option 2024-12-24 10:25:19 +08:00
kangfenmao
95148db190 Merge branch 'knowledge' 2024-12-24 09:38:38 +08:00
little_penguin66
8fad34968d add autoSync in WebDav 2024-12-24 09:34:16 +08:00
kangfenmao
148033446d fix: check provider connection use the last model 2024-12-24 09:33:43 +08:00
kangfenmao
ecf45e0c00 chore(version): 0.9.0 2024-12-23 17:07:26 +08:00
kangfenmao
59f3375f44 build: reduce package size 2024-12-23 14:22:37 +08:00
kangfenmao
3e64fa2025 fix: knowledge bugs 2024-12-23 10:48:40 +08:00
kangfenmao
016027ac59 build: add matrix 2024-12-19 17:20:52 +08:00
kangfenmao
a0bc50b29c feat: remove knowledge queue 2024-12-19 13:45:11 +08:00
kangfenmao
7cb381be40 feat: knowledge base 2024-12-19 09:24:20 +08:00
tanxiang
f8fd1f1c5e feat(i18n): add "Switch Model" message to multiple locales and update tooltip in MessageMenubar 2024-12-18 13:35:39 +08:00
adfnekc
1f70ef399f feat: message 增加 metrics 字段 用以统计token生成速度和首字时延 (#479) 2024-12-16 17:10:36 +08:00
kangfenmao
98e29347bd chore(version): 0.8.27 2024-12-16 15:47:07 +08:00
kangfenmao
574c4d62ca feat: added long text paste control and threshold settings 2024-12-16 15:08:40 +08:00
kangfenmao
d875f72793 fix: o1模型支持流式输出 #439 2024-12-16 14:48:51 +08:00
kangfenmao
0d1fa453af feat: disable select menu text 2024-12-16 14:39:54 +08:00
kangfenmao
1cccf5e41e feat: add copy last message shortcuts 2024-12-16 14:13:59 +08:00
kangfenmao
82cfda45a1 feat: add thinkany minapp 2024-12-16 13:42:08 +08:00
kangfenmao
28b91a3a0d fix: mermaid图表代码一键复制功能 #460 2024-12-16 13:20:24 +08:00
kangfenmao
679f405697 fix: 输出不显示 markdown 的小圆点 #446 2024-12-16 12:58:31 +08:00
kangfenmao
c58722289a feat: added hotkey functionality and improved appstorepopover layout 2024-12-16 12:55:14 +08:00
kangfenmao
7033194368 feat: add svg preview 2024-12-16 12:35:39 +08:00
kangfenmao
e8eb04c57d feat: add display settings 2024-12-16 12:04:12 +08:00
kangfenmao
c5fe1d3bba feat: add miniapp icon to navbar right 2024-12-16 11:32:50 +08:00
kangfenmao
90ce930b0b feat: add n.cn to minapp list 2024-12-16 10:48:55 +08:00
kangfenmao
8bfd6534e6 fix: input bar default rows #431 2024-12-16 10:26:04 +08:00
duanyongcheng77
ef1fc300f0 feat: 🎸 可以多次点击上传文件按钮上传文件 2024-12-16 09:54:12 +08:00
kangfenmao
8069d9d969 fix: KaTeX引擎公式渲染错位 #473 2024-12-16 09:42:10 +08:00
kangfenmao
50e6ea3310 feat: added setshowassistants function to useshowassistants hook and updated error handling logic 2024-12-13 16:37:48 +08:00
kangfenmao
2b661a9f7e fix: handle unknown models in iswebsearchmodel function 2024-12-13 10:28:09 +08:00
Shelly
cbd0d15526 feat: 🎸 allowMarkdownLongTextToAutomaticallyWrap (#454)
Co-authored-by: duanyongcheng77 <duanyongcheng77@gmail.com>
2024-12-13 09:51:42 +08:00
kangfenmao
01df49b8b7 chore(version): 0.8.25 2024-12-12 18:24:06 +08:00
kangfenmao
a0c14fdfce feat: add web search for google gemini modal gemini-2.0-flash-exp 2024-12-12 14:26:52 +08:00
Shelly
a52e78693b feat: 🎸 add shortcut for command + enter (#443)
* feat: 🎸 add shortcut for command

* feat: 🎸 only command

---------

Co-authored-by: duanyongcheng77 <duanyongcheng77@gmail.com>
2024-12-12 14:22:41 +08:00
kangfenmao
c4bbe048e4 styles: use mac style 2024-12-11 20:02:15 +08:00
kangfenmao
6b982779ba fix: can not delete last message 2024-12-11 20:01:52 +08:00
kangfenmao
254e45f722 chore(version): 0.8.24 2024-12-11 11:41:16 +08:00
kangfenmao
78e9e87780 feat: add new social media translations and links 2024-12-10 20:36:37 +08:00
kangfenmao
4855226ba5 feat: add shortcut for assistant and topic show 2024-12-10 20:28:05 +08:00
kangfenmao
f5a1156b52 fix: reduced message counts for messages component 2024-12-10 19:53:14 +08:00
kangfenmao
6ff28602d7 feat: add enter key trigger for translate model prompt 2024-12-10 19:41:50 +08:00
kangfenmao
d785de1895 style: improved layout and styling 2024-12-10 19:39:00 +08:00
kangfenmao
21be791cf0 feat: add top-p settings #224 2024-12-10 19:24:30 +08:00
kangfenmao
5f7dbfd24d feat: sidebar shadow 2024-12-10 18:07:37 +08:00
kangfenmao
99f51e7897 fix: 清除上下文按钮容易误点 #426 2024-12-10 17:23:00 +08:00
kangfenmao
1ecdc6920a fix: support "ctrl+enter" as send shortcuts #244 2024-12-10 17:09:57 +08:00
kangfenmao
9ba0a4aa56 feat: add update info ui 2024-12-10 17:06:29 +08:00
牡丹凤凰
fb20522c21 Update models.ts 2024-12-10 05:23:13 +08:00
kangfenmao
9f9b2a4b37 refactor: improve llmodel group assignment logic and sorting 2024-12-09 11:26:02 +08:00
kangfenmao
55d0792161 fix: escaped special characters in code snippets #419 2024-12-09 09:50:15 +08:00
亢奋猫
15a3f00ab5 Merge pull request #418 from 1355873789/develop
历史消息懒加载
2024-12-07 14:41:48 +08:00
Amatsuka
2b37df08c6 elfix: Add the grok vision model and fix the incorrect marking of the grok beta model as a visual model. 2024-12-07 14:39:48 +08:00
首都爱护动物协会
0f0737b828 历史消息懒加载
性能优化
2024-12-07 12:27:16 +08:00
duanyongcheng77
4268b2b494 style: 💄 change chinese-traditional icon to hk 2024-12-06 17:03:28 +08:00
kangfenmao
554a1f9421 chore(version): 0.8.23 2024-12-06 00:12:07 +08:00
kangfenmao
e507afa311 fix: plain text render 2024-12-05 22:33:21 +08:00
kangfenmao
a85cc588de fix: check for update ui 2024-12-05 21:38:11 +08:00
kangfenmao
6cd2de6603 fix: register shortcut key error 2024-12-05 21:05:26 +08:00
kangfenmao
cbeb74d3dd feat: added translation support for non-english languages 2024-12-05 09:50:15 +08:00
kangfenmao
c6dba95fbc fix: add error handling and logging for shortcut registration failures, remove windows shortcut support 2024-12-04 19:37:37 +08:00
kangfenmao
778891941a chore(version): 0.8.22 2024-12-04 14:08:09 +08:00
kangfenmao
92ee53ce51 fix: improved error handling with formatted json error messages 2024-12-03 20:42:13 +08:00
kangfenmao
422ef76a45 feat: change re-generage message logic 2024-12-03 20:32:18 +08:00
kangfenmao
52f478b350 docs: add chineses issue template 2024-12-03 19:02:41 +08:00
kangfenmao
278aa3530b feat: improved search functionality for agent page 2024-12-03 18:46:57 +08:00
kangfenmao
e9c4dde772 wip 2024-12-03 17:45:39 +08:00
kangfenmao
796d7d157d chore: cleaned up dependencies and database schema 2024-12-03 17:21:51 +08:00
kangfenmao
1a8da86704 fix: translate prompt and translateText funciton 2024-12-03 17:18:18 +08:00
kangfenmao
40d74a01c1 chore(version): 0.8.20 2024-12-03 12:52:08 +08:00
kangfenmao
7ecf3f093c style: update api key input field formatting and validation 2024-12-03 12:24:25 +08:00
kangfenmao
97052f825f feat: implement automatic text translation functionality 2024-12-03 11:55:52 +08:00
kangfenmao
b73fa5a44f feat: add MessageErrorBoundary component 2024-12-03 11:15:35 +08:00
kangfenmao
647f464bef feat: added topic auto-renaming to messages page 2024-12-03 10:57:38 +08:00
kangfenmao
4edaa504a1 feat: add enable topic naming settings #399 2024-12-03 10:47:43 +08:00
kangfenmao
5a6d2652f0 refactor: shortcuts feature 2024-12-03 10:23:53 +08:00
kangfenmao
85a7401518 feat: add translations and reset functionality for new features 2024-12-02 22:29:18 +08:00
kangfenmao
e47311afd2 feat: add shortcut feature 2024-12-02 18:03:38 +08:00
kangfenmao
117fa4cb54 feat: add translated message content 2024-12-02 13:41:28 +08:00
kangfenmao
d1cae6c230 feat: auto translate input text 2024-11-30 22:37:33 +08:00
kangfenmao
a31a9963a9 feat: generate random seed for image generation in usepaintings hook 2024-11-30 20:22:07 +08:00
kangfenmao
f253ca4103 fix: update ipc handle to retrieve update information 2024-11-30 20:22:00 +08:00
kangfenmao
0150251de2 feat: added command shortcuts for new topic input 2024-11-30 14:18:38 +08:00
kangfenmao
62fa366205 style: update code block padding and topic position 2024-11-30 12:01:00 +08:00
kangfenmao
4d1e3963bc feat: add configurable request options to gemini provider 2024-11-26 13:15:25 +08:00
kangfenmao
b007f8a437 fix: proxy 2024-11-25 15:57:16 +08:00
kangfenmao
463cdda25d fix: 链接失败警告不消失 #382
close #382
2024-11-25 14:14:03 +08:00
kangfenmao
44f7fa09e0 fix: 模型回答时可以新建对话 #369
close #369
2024-11-25 14:10:09 +08:00
kangfenmao
baaf37a8f4 fix: code block copy button missing 2024-11-25 13:56:41 +08:00
kangfenmao
b2a0e4eeaa feat: update input component and add translation features 2024-11-25 13:43:03 +08:00
kangfenmao
0ac523981d fix: auto update assistant model 2024-11-25 12:49:47 +08:00
kangfenmao
5831d69f2f feat: create assistant with search text 2024-11-25 12:30:46 +08:00
kangfenmao
4a37192961 feat: clear app cache 2024-11-25 11:16:24 +08:00
kangfenmao
1e2ebe5232 feat: add localization text and model type support #378 2024-11-25 10:31:57 +08:00
kangfenmao
d377376bae feat: add border to list item 2024-11-24 01:35:41 +08:00
kangfenmao
99757a1cc7 fix: 设置中有两个“代码风格”项 #373 2024-11-23 23:08:27 +08:00
kangfenmao
0581c347f6 feat: improve proxy configuration handling 2024-11-23 14:21:08 +08:00
kangfenmao
e205c021e0 feat: update electron configuration and add locale-based language selection #370 2024-11-21 18:14:27 +08:00
kangfenmao
a32df473a3 style: adjust window vibrancy style 2024-11-20 20:18:51 +08:00
kangfenmao
fe02baf2bd style: removed dark theme styles, updated search and ui 2024-11-20 19:14:09 +08:00
kangfenmao
8e2e3aab84 chore(version): 0.8.16 2024-11-20 18:50:27 +08:00
kangfenmao
77c834bef1 feat: implement new ui features and styles 2024-11-20 17:49:39 +08:00
kangfenmao
bc56746f3e Revert "feat: remove model settings from settings tab"
This reverts commit 4d56c841a3.

# Conflicts:
#	src/renderer/src/pages/home/Tabs/Settings.tsx
2024-11-20 17:38:10 +08:00
kangfenmao
7436e34b11 feat: add new model visionallowedmodels 2024-11-20 16:40:00 +08:00
kangfenmao
a827da19f0 style: update styles for improved visual consistency and layout 2024-11-20 16:37:52 +08:00
kangfenmao
4b77cb557a feat: added size attribute to preview and download buttons 2024-11-20 11:57:57 +08:00
kangfenmao
56300f259f feat: enable auto-update and auto-install of app updates 2024-11-20 11:04:42 +08:00
kangfenmao
5e25034e89 style: adjusted layout and styling for searchpopup component 2024-11-20 11:01:02 +08:00
kangfenmao
4b36f47c16 chore(version): 0.8.15 2024-11-19 23:46:22 +08:00
kangfenmao
eb2ac5e753 docs: visual updates to shortcutsettings page 2024-11-19 20:53:12 +08:00
kangfenmao
ba336fdc95 fix: 无法恢复备份文件 #341 2024-11-19 20:30:47 +08:00
kangfenmao
956a0479f3 feat: new settings ui 2024-11-19 19:54:18 +08:00
kangfenmao
518a3b26b6 feat: added data folder 2024-11-19 18:48:57 +08:00
kangfenmao
6d665fa926 fix: 编辑消息无效 #313 2024-11-19 15:34:03 +08:00
kangfenmao
2f865d463b style: update antdesign segmented styles 2024-11-19 15:17:54 +08:00
kangfenmao
8cd77fe72f feat: adjusted searchpopup dimensions and added assistant generation checks 2024-11-19 15:08:04 +08:00
kangfenmao
4fee12a22e style: update color scheme to darker shades of black 2024-11-19 14:45:22 +08:00
kangfenmao
0d28e6805c feat: add search popup 2024-11-19 14:17:38 +08:00
kangfenmao
5c178be6ff feat: improved agents page filtering and layout adjustments, added russian translations support 2024-11-19 12:04:01 +08:00
kangfenmao
d5d39c6458 style: update code block ui styling and logic 2024-11-19 11:49:35 +08:00
kangfenmao
6ca92da801 feat: validate html elements in markdown, refactor cursor type, disable markdown input rendering 2024-11-19 11:45:00 +08:00
kangfenmao
4588921a2c fix: has unsafe elements 2024-11-19 11:13:16 +08:00
首都爱护动物协会
a83ce8cc6b Update models.ts
douhbao matching rules update
2024-11-19 04:08:26 +08:00
kangfenmao
ec661ed9d6 feat: auto switch to topics 2024-11-18 17:51:17 +08:00
kangfenmao
91c1f6169e feat: code collapsible settings 2024-11-18 17:44:33 +08:00
kangfenmao
d7cb80d8ca wip 2024-11-18 17:16:55 +08:00
kangfenmao
8db549ebcd fix: 缩放快捷键不支持小键盘 #354 2024-11-18 17:05:50 +08:00
kangfenmao
1a6903e32e fix: 重启之后无法保存界面的缩放 #354 2024-11-18 17:00:26 +08:00
kangfenmao
1bd190e986 feat: added proxy settings and handling functionality 2024-11-18 14:05:17 +08:00
kangfenmao
17943cdf44 feat: add provider type 2024-11-18 13:04:46 +08:00
kangfenmao
fd5c425e8c feat: enabled provider after add model 2024-11-18 11:41:17 +08:00
kangfenmao
09b91296f4 feat: added gemini experimental to vision allowed models 2024-11-18 11:26:02 +08:00
injurka
ab37ec05c9 feat: russia locale 2024-11-13 08:21:13 +08:00
kangfenmao
35067dc261 feat: add new button to inputbar component and remove unnecessary toolbar button 2024-11-12 19:27:46 +08:00
kangfenmao
187ab30897 fix: improved popup item filtering logic 2024-11-12 19:27:46 +08:00
kangfenmao
0bbbcc00a6 feat: add adaptive tray icon handling 2024-11-12 17:52:00 +08:00
kangfenmao
ed2a1fcc61 feat: remove tray behavior on app close, add platform detection and file extensions 2024-11-12 16:36:47 +08:00
kangfenmao
4c1b89b878 feat: added api connection validation and provider configuration 2024-11-12 13:56:03 +08:00
kangfenmao
b62d22f89a feat: update system_models to use gpt-4o-latest model 2024-11-12 13:28:40 +08:00
kangfenmao
bb61f8110f style: adjusted styling and layout for mac os and file list view 2024-11-12 12:09:34 +08:00
kangfenmao
b0a0a226e7 feat: improved pin model functionality and translations 2024-11-12 11:54:11 +08:00
kangfenmao
d73dd0e639 feat: handle sorted and filtered agent groups in agentspage 2024-11-12 11:26:09 +08:00
kangfenmao
c696af3885 feat: update system tray icon functionality and ui 2024-11-12 11:16:55 +08:00
kangfenmao
fe03f9d521 feat: add provider deletion functionality and related translations 2024-11-12 10:14:01 +08:00
kangfenmao
ae81ef8910 fix: fixed tiling window manager and password input handling issues 2024-11-12 10:00:58 +08:00
kangfenmao
67ea972c3d fix: 视觉模型识别错误 #329 2024-11-12 09:23:24 +08:00
kangfenmao
4d56c841a3 feat: remove model settings from settings tab 2024-11-12 00:50:13 +08:00
kangfenmao
ade4780c0e feat: update translations and display settings 2024-11-12 00:37:23 +08:00
kangfenmao
a0d60e6a9b feat: improved tray functionality and ui theme settings 2024-11-12 00:25:57 +08:00
kangfenmao
367e99d698 style: improved mermaid popup styling and positioning 2024-11-11 23:49:44 +08:00
injurka
bc479a999d feat: added settings for minimize to tray instead of closing 2024-11-11 23:49:18 +08:00
kangfenmao
ec44eba3e6 fix: fix select box issue with mermaid diagrams 2024-11-11 23:33:57 +08:00
kangfenmao
9f4245be61 style: improved chat window styling and accessibility 2024-11-11 23:26:45 +08:00
kangfenmao
b905747162 fix: adjusted tray icon size to match linux platform requirements 2024-11-11 18:03:03 +08:00
injurka
728b2532ea fix: the context menu is not displayed on linux 2024-11-11 17:58:20 +08:00
kangfenmao
b39d33c6ac feat: add loading indicator and disable check button while checking api keys 2024-11-11 17:57:48 +08:00
kangfenmao
7e169f8282 style: update bubble ui component styles 2024-11-11 17:41:53 +08:00
kangfenmao
2537109406 fix: message color 2024-11-11 13:40:25 +08:00
kangfenmao
adaaee5848 chore(version): 0.8.12 2024-11-11 11:18:43 +08:00
kangfenmao
b23b41dfd1 feat: rename images to paintings for consistency 2024-11-11 10:45:42 +08:00
kangfenmao
558b22baf5 feat: add check all keys popup 2024-11-11 10:41:43 +08:00
kangfenmao
fe8c1a4928 fix: removed macos window minimize event handler 2024-11-11 09:25:22 +08:00
kangfenmao
f59393547b style: update code formatting for markdown styles 2024-11-10 17:16:10 +08:00
kangfenmao
234751c538 feat: add mermaid preview and download feature 2024-11-10 17:09:18 +08:00
kangfenmao
36c99a7b3f fix: 加入账号轮询功能 #293 2024-11-09 23:18:56 +08:00
kangfenmao
aeba11737b feat: update sidebar menu with interactive tooltips and painting terminology 2024-11-09 22:26:35 +08:00
kangfenmao
c127790fd7 fix: removed theme dependency in syntaxhighlighterprovider, added mermaid delay 2024-11-09 15:02:38 +08:00
kangfenmao
e9e7e30f43 fix: 气泡默认界面显示异常 #308 2024-11-09 14:54:22 +08:00
kangfenmao
4af84d7b84 feat: add mermaid library and theme initialization 2024-11-09 14:51:39 +08:00
kangfenmao
47f906a974 fix: mermaid图渲染有问题 #310 2024-11-09 14:16:42 +08:00
kangfenmao
8b2e5f1676 style: improved syntax highlighting functionality and code loading 2024-11-09 10:05:34 +08:00
kangfenmao
b34de79ca3 feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
kangfenmao
1577a0ad7b fix: code style init value 2024-11-08 11:59:32 +08:00
injurka
db45f12daf fix: expand code syntax highlighting options (#307)
* added locale for context-menu

* fix: expand code syntax highlighting options

* fix: type for theme

---------

Co-authored-by: injurka <ikornilov.ext@prosebya.ru~>
2024-11-08 11:59:05 +08:00
kangfenmao
a81960bd7b chore(version): 0.8.10 2024-11-07 23:06:42 +08:00
kangfenmao
adaf7df57e fix: 添加自定义的模型的分组总是成为大写字母 #257 2024-11-07 22:51:37 +08:00
kangfenmao
f174aca5d3 fix: input token i18n 2024-11-07 22:51:37 +08:00
injurka
15e0df0e34 fix: when changing the values in the inputs in the tab Default Assisting, they do not change (#305)
* added locale for context-menu

* fix: when changing the values in the inputs in the tab Default Assisting, they do not change

---------

Co-authored-by: injurka <ikornilov.ext@prosebya.ru~>
2024-11-07 22:13:47 +08:00
kangfenmao
d506cda0ba feat: 添加DuckDuckGo AI Chat #271 2024-11-07 22:08:11 +08:00
kangfenmao
e8b455dd9e fix: 删除最后一组预设消息组后无法保存 #300 2024-11-07 18:11:45 +08:00
kangfenmao
d8cdd7eca9 fix: 气泡模式,代码框配色看不清楚 #302 2024-11-07 17:49:31 +08:00
kangfenmao
02a8c9feb8 fix: github models 不支持图片 #291 2024-11-07 17:32:37 +08:00
injurka
58e2e410cb fix type import 2024-11-06 22:09:28 +08:00
injurka
ddc39d1fd4 added locale for context-menu 2024-11-06 22:09:28 +08:00
kangfenmao
8ee12e7407 refactor: refactored capturescrollablediv function and updated chat and messages components 2024-11-06 15:56:48 +08:00
kangfenmao
1d98b897af chore: remove unused llm store model and migration config 2024-11-06 13:17:43 +08:00
首都爱护动物协会
92a491be15 Match the avatar for the Pixtral model. 2024-11-05 20:50:43 +08:00
首都爱护动物协会
9956593595 add pixtral avatar 2024-11-05 20:50:43 +08:00
kangfenmao
e6efd3071b fix: fix shortcut registration and unregistration 2024-11-05 17:25:38 +08:00
Hypered1
31bcab2384 Fix typo in zh-cn.json 2024-11-05 16:48:56 +08:00
首都爱护动物协会
eed51ea55b Add new model and provider avatars. 2024-11-05 16:48:07 +08:00
首都爱护动物协会
68fa18b59c Add Providers
1. Fix the naming error of the Grok model
2. Add new providers: Grok, Mistral, Jina, Hyperbolic
2024-11-05 16:48:07 +08:00
kangfenmao
d6b9fb7e82 feat: remove image compress 2024-11-03 01:26:00 +08:00
kangfenmao
bddedb7759 refactor: main code 2024-11-02 23:32:59 +08:00
kangfenmao
2f05435ce6 feat: export to word 2024-11-02 21:45:23 +08:00
kangfenmao
e9b4614928 fix: 在对话中插入图片时,应该自动压缩一下 #132 2024-11-02 15:30:41 +08:00
kangfenmao
b4d5595b68 fix: Ctrl + - 缩放时 缩到最小 再缩的话会报错 #266 2024-11-02 15:13:43 +08:00
kangfenmao
5db5190e44 fix: 默认模型在模型服务中禁用后显示错误 #266 2024-11-02 15:11:36 +08:00
kangfenmao
c856b8d195 feat: add message card style switch 2024-11-01 21:50:40 +08:00
kangfenmao
b9de2e8bb3 fix: chat text color 2024-11-01 18:14:23 +08:00
kangfenmao
aa1225b6ec style(message): user message use black color 2024-11-01 17:43:21 +08:00
kangfenmao
30c2cfb3c5 feat: set topic position to left 2024-11-01 12:28:13 +08:00
kangfenmao
4ce6975ed5 feat: dynamic handling for tab groups 2024-11-01 12:18:48 +08:00
kangfenmao
889d38d02a fix: ui and layout 2024-11-01 12:06:30 +08:00
kangfenmao
52951dd78c feat: added sorting functionality and updated translations 2024-11-01 11:46:11 +08:00
kangfenmao
77db2a1e2b feat: improved ui layout and added reusable add agent card component 2024-11-01 11:00:17 +08:00
kangfenmao
e8ac4b264d feat: topic position set default to left 2024-10-31 17:11:32 +08:00
Teo
01293b08b2 refactor(navbar): 移除未使用的代码 2024-10-31 16:51:38 +08:00
Teo
80f2aec2be refactor(navbar): 移除未使用的代码 2024-10-31 16:51:38 +08:00
Teo
3e7949d8b4 style(toggleTheme): 将主题切换按钮移到左下角菜单栏中 2024-10-31 16:51:38 +08:00
Teo
a5b9dc63d6 style(chat): 对话界面改为左右布局 2024-10-31 16:51:38 +08:00
Teo
70e680cf47 style(markdown): 小代码块不换行 2024-10-31 16:51:38 +08:00
kangfenmao
1c5b2b92dc chore(version): 0.8.7 2024-10-31 15:01:37 +08:00
kangfenmao
a551ae9142 style: update responsive container styling for paintingslist component 2024-10-31 14:39:27 +08:00
kangfenmao
2f420c0fcd feat: added new painting functionality with mac device restriction 2024-10-31 14:35:05 +08:00
kangfenmao
837d91aa61 chore(version): 0.8.6 2024-10-31 13:34:06 +08:00
kangfenmao
e1e9f26de7 feat: improved real-time painting generation support 2024-10-31 13:28:07 +08:00
kangfenmao
a895860376 feat: added translations and ui improvements 2024-10-31 13:18:35 +08:00
kangfenmao
aa4b197e3b feat: added translation options for opening all files 2024-10-31 12:17:27 +08:00
kangfenmao
c317d5caa8 feat: added translation functionality and chinese support 2024-10-31 12:11:30 +08:00
kangfenmao
8408f2ebb8 style: prevent drag on image preview switch 2024-10-31 11:38:37 +08:00
kangfenmao
8fd1855838 feat: improvedscrollbar component functionality and added internationalization support to agentspage component 2024-10-31 11:31:38 +08:00
首都爱护动物协会
b94948266b add new providers logo 2024-10-31 09:37:17 +08:00
首都爱护动物协会
e9e6078dd2 Agents Page Upgrade
1. Simplified the layout of the agents page for improved user experience.

2. Enhanced the design of agent cards for a more visually appealing look.
2024-10-31 09:37:17 +08:00
kangfenmao
ef9bb4d656 fix: painting no provider 2024-10-31 09:23:58 +08:00
kangfenmao
068d802bcc feat: files ui improvements 2024-10-30 20:45:48 +08:00
kangfenmao
509107fc1e refactor: services 2024-10-30 17:23:52 +08:00
kangfenmao
3a765fa0cd chore: remove useless files 2024-10-30 00:32:27 +08:00
kangfenmao
3b08ee2720 feat: added file download functionality and improved api 2024-10-30 00:32:27 +08:00
kangfenmao
46a1588ba1 feat: add paintaing page 2024-10-30 00:32:27 +08:00
AHpx-Lap
2fe0fbd69f feat: use auto theme as default 2024-10-30 00:31:56 +08:00
kangfenmao
76e6e67d54 feat: add instance lock and second instance handling 2024-10-29 14:48:48 +08:00
kangfenmao
d88f41c6be chore(version): 0.8.5 2024-10-29 02:46:45 +08:00
kangfenmao
0b2a840ed9 feat: add chinese translations and improve ui 2024-10-29 02:26:10 +08:00
kangfenmao
d74d481cc4 feat: add keyborad shortcut settings 2024-10-29 01:55:11 +08:00
kangfenmao
afdaae4343 feat: enhanced search functionality with translation support 2024-10-29 00:40:44 +08:00
kangfenmao
4d81b51fcb fix: agents sort 2024-10-29 00:27:35 +08:00
kangfenmao
33738fa875 fix: add X-Api-Key headers #246 2024-10-28 23:33:20 +08:00
kangfenmao
0171b9acab fix: add claude-3-5-sonnet-latest support #247 2024-10-28 16:40:37 +08:00
kangfenmao
649008db5b fix: agents tabs not shown 2024-10-28 16:23:55 +08:00
首都爱护动物协会
18976238fd Update agents.json 2024-10-28 08:50:59 +08:00
kangfenmao
fd63666e77 feat: enhanced text wrapping and ant-input styling 2024-10-27 22:50:45 +08:00
kangfenmao
648cabf1c1 feat: update agents.json 2024-10-27 19:53:20 +08:00
kangfenmao
b1d9485c22 fix: fix stale state issue in chat component 2024-10-27 19:30:18 +08:00
kangfenmao
ab4445f59a feat: enhanced ui with translation and layout improvements 2024-10-27 19:13:54 +08:00
kangfenmao
1cbe342940 feat: use real file path 2024-10-27 18:58:23 +08:00
kangfenmao
7392d0aaa3 feat: scroll to bottom on messages page load 2024-10-27 18:33:01 +08:00
kangfenmao
01a201a79b fix: removed filter condition and messages from fetchchatcompletion() payload 2024-10-27 00:11:30 +08:00
kangfenmao
9fb91632be style: optimized performance and refined styles 2024-10-26 23:48:14 +08:00
kangfenmao
b4fdd1e8fa style: align tab content horizontally and ignore agents.json with prettier 2024-10-26 23:36:06 +08:00
kangfenmao
46e0b1c11e feat: update ui components with improved design and functionality 2024-10-26 23:14:33 +08:00
kangfenmao
d4ad748ef1 refactor: improved code readability for filtering agents 2024-10-26 22:38:31 +08:00
kangfenmao
cc6f5275b0 feat: add agents tabs and search 2024-10-26 22:33:47 +08:00
kangfenmao
03423a5600 feat: added icons to buttons for preview and download 2024-10-26 17:29:35 +08:00
kangfenmao
b2e73662eb refactor: messages completion 2024-10-26 17:12:06 +08:00
kangfenmao
279850ce79 fix: WebDAV 备份失败 maxBodyLength 限制 #243 2024-10-25 13:26:46 +08:00
kangfenmao
0e16aa1e86 docs: update documentation for a more inclusive environment and added japanese and chinese documentation 2024-10-25 00:09:01 +08:00
kangfenmao
151127ab53 fix: 新的滚动条组件 2024-10-24 23:08:11 +08:00
kangfenmao
37f56c71e8 chore(version): 0.8.3 2024-10-24 18:47:20 +08:00
kangfenmao
95bda6fdfb docs: update translation and api url tip 2024-10-24 16:19:47 +08:00
kangfenmao
fe77161a70 fix: 添加默认助手会添加两个 #238 2024-10-24 15:46:08 +08:00
kangfenmao
b400819d6a fix: 公式显示问题 #239 2024-10-24 15:33:04 +08:00
kangfenmao
c497586be6 fix: 添加默认助手会添加两个 #238 2024-10-24 15:05:13 +08:00
kangfenmao
f5e9d92610 feat: scrollbar 2024-10-24 14:58:13 +08:00
kangfenmao
e0d7eceaff fix: 公式又不居中了 #231 2024-10-23 20:49:22 +08:00
kangfenmao
c42d941f09 fix: 修复数据库和 store 数据不一致问题 2024-10-23 14:08:48 +08:00