Commit Graph

110 Commits

Author SHA1 Message Date
LiuVaayne
eda82fa23e 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
SuYao
1edac8ebb5 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
lizhixuan
f524df4712 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
7a4be73dc0 revert: some proxy errors in main process (#2294) 2025-03-01 23:17:44 +08:00
SuYao
04ef027417 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
SuYao
9d3ca4f1f0 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
kangfenmao
966f843d26 chore: Update Tavily core package and remove js-tiktoken dependency 2025-02-23 11:01:30 +08:00
kangfenmao
7e6e6d21c1 feat: add web search 2025-02-23 11:01:29 +08:00
kangfenmao
ffbfd87795 chore: Upgrade Yarn and TypeScript patch versions 2025-02-21 14:18:16 +08:00
Yrom
d73d92e795 feat: Add PlantUML diagram support (via PlantUML official online server) 2025-02-19 18:37:05 +08:00
shniubobo
1043430568 fix: Rendering error with MathJax for Chinese text 2025-02-17 16:24:38 +08:00
bC2y5tal
7a7f51d5f3 feat: Add EPUB file support to document loader 2025-02-16 13:46:52 +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
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
kangfenmao
d8d97ff637 feat: Add image loader to embedjs configuration 2025-02-11 22:55:49 +08:00
kangfenmao
e06a510e9c chore: Update embedjs dependencies to version 0.1.28 2025-02-11 22:36:34 +08:00
Trey Dong
fa5522bbff feat: 增加导出话题至Notion的功能 (#1331)
* feat: 新增导出至Notion的选项

* fix:添加多语言支持

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

* fix:修复多语言错误及调整UI样式统一
2025-02-11 11:27:01 +08:00
kangfenmao
bf15207a2e chore: update @langchain/openai package dependency 2025-02-07 21:20:14 +08:00
Nanami
d3e868550c feat: Support configurable chunk size and overlap for knowledge base 2025-01-27 12:30:22 +08:00
kangfenmao
13ea20083d chore(version): 0.9.11 2025-01-19 20:50:33 +08:00
kangfenmao
0f3c7aa648 feat: add mini window 2025-01-19 13:59:32 +08:00
kangfenmao
7fb9a34f7d Revert "fix:修复单行CodeBlock中显示sub"
This reverts commit d808b6dffc.
2025-01-08 10:46:35 +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
c777436a81 feat: improved translation features and settings 2025-01-02 12:21:22 +08:00
kangfenmao
9c99560f6e chore(version): 0.9.3 2024-12-31 00:38:20 +08:00
kangfenmao
628d652c47 chore: update dependencies and improve project structure 2024-12-27 12:42:17 +08:00
kangfenmao
dc657c4d49 refactor: knowledge base engine change to libsql 2024-12-26 10:00:37 +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
kangfenmao
6d395fba09 build: download npm node native modules 2024-12-24 17:24:38 +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
7cb381be40 feat: knowledge base 2024-12-19 09:24:20 +08:00
kangfenmao
d6e21a77ce chore(version): 0.8.26 2024-12-15 18:03:36 +08:00
kangfenmao
444250c162 build: update electron version 2024-12-13 09:52:18 +08:00
kangfenmao
f5b7fe0c27 chore: update dependencies and remove unused code 2024-12-13 09:35:40 +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
首都爱护动物协会
0f0737b828 历史消息懒加载
性能优化
2024-12-07 12:27:16 +08:00
kangfenmao
796d7d157d chore: cleaned up dependencies and database schema 2024-12-03 17:21:51 +08:00
kangfenmao
e47311afd2 feat: add shortcut feature 2024-12-02 18:03:38 +08:00
kangfenmao
ba336fdc95 fix: 无法恢复备份文件 #341 2024-11-19 20:30:47 +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
02a8c9feb8 fix: github models 不支持图片 #291 2024-11-07 17:32:37 +08:00
kangfenmao
d6b9fb7e82 feat: remove image compress 2024-11-03 01:26:00 +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
1e497edcfc chore: update dependencies and electron version 2024-10-30 00:31:03 +08:00