64 Commits

Author SHA1 Message Date
zhaoweijie
c937694d8b Merge branch 'main' of gitea.internetapi.cn:iod/page-assist 2025-08-25 19:40:20 +08:00
zhaoweijie
635e792e22 refactor(layout): 重构布局组件并添加视频播放功能
-重写 Header 组件,使用新的 OptionLayoutContext 替代 HistoryContext
- 新增 VideoPlayer 组件,用于播放视频
- 更新 Playground 组件,集成新的侧边栏和视频播放功能
- 重构 Layout 组件,支持新的选项布局
- 更新相关路由和导出导入逻辑,以支持上述更改
2025-08-25 19:40:02 +08:00
CaiHQ
b47669f3e4 update playground 2025-08-25 15:36:13 +08:00
zhaoweijie
6f386709e2 Merge remote-tracking branch 'origin/main' 2025-08-24 19:00:58 +08:00
zhaoweijie
2b4885ae2d refactor(iod): 重构数联网相关组件和逻辑
-优化了 Data、Scene 和 Team组件的逻辑,使用 currentIodMessage 替代复杂的条件判断- 改进了 IodRelevant 组件的动画和数据处理方式
- 调整了 Message 组件以支持数联网搜索功能
- 重构了 PlaygroundIodProvider,简化了上下文类型和数据处理
- 更新了数据库相关操作,使用新的 HistoryMessage 类型
- 新增了 IodDb 类来管理数联网连接配置
2025-08-24 19:00:49 +08:00
CaiHQ
6bb9247c6c update playground 2025-08-24 13:53:31 +08:00
zhaoweijie
e640b1254d refactor(components): 重构 playground组件
- 移除 Data、Scene 和 IodRelevant 组件中的 Drawer
- 优化 Data、Scene 和 IodRelevant 组件的结构
- 添加 Header 组件用于展示标题和关闭按钮
- 使用 Main 组件替代原来的 ShowCard 组件
- 调整样式和布局,提高组件的可复用性和可维护性
2025-08-23 17:03:14 +08:00
CaiHQ
37a11fbb8b feat: update faqs 2025-08-22 18:31:19 +08:00
zhaoweijie
17020e8755 feat(iod): 重构数联网搜索功能
- 新增数联网设置页面
- 优化数联网搜索结果展示
- 添加数据集、科创场景和科技企业等不同类型的搜索结果
- 重构搜索结果卡片组件,支持加载状态和不同展示模式
- 更新数联网搜索相关的国际化文案
2025-08-22 17:15:19 +08:00
zhaoweijie
efbf2a3eff feat/playground: 重构 playground组件
- 更新 Data 和 History组件的样式和布局
- 添加新的功能和交互,如热门搜索和智能体选择
- 优化组件性能和可维护性
2025-08-21 14:12:29 +08:00
n4ze3m
bd0c9bc825 feat: remove reasoning from message content in history generation 2025-02-09 12:32:18 +05:30
n4ze3m
ef51cf85ff feat: support Edge browser 2025-02-08 23:06:09 +05:30
n4ze3m
926f4e1a4a feat: implement CustomAIMessageChunk class and enhance reasoning handling in useMessageOption hook 2025-02-08 20:50:48 +05:30
n4ze3m
8381f1c996 feat: implement mergeReasoningContent function for enhanced reasoning handling 2025-02-08 17:13:40 +05:30
yz778
61458834fc Update to use model ID as name 2025-01-28 21:47:14 -08:00
yz778
af89743039 fix: alternate handler for retrieving Gemini models 2025-01-28 21:27:05 -08:00
n4ze3m
51804bc9ae fix: bug fix 2025-01-25 15:19:28 +05:30
n4ze3m
97daaf9dc2 feat: Add reasoning UI 2025-01-24 22:29:18 +05:30
n4ze3m
0af69a3be8 feat: Add text splitting configuration options 2025-01-04 23:24:23 +05:30
n4ze3m
2c12b17dda feat(vision): add vision chat mode
- Add new "vision" chat mode to the application
- Implement the `visionChatMode` function to handle vision-based chat interactions
- Update the UI to include a new button to toggle the vision chat mode
- Add new translations for the "vision" chat mode tooltip
- Disable certain UI elements when the vision chat mode is active
2024-11-23 14:04:57 +05:30
n4ze3m
ca26e059eb feat: Improve memory embedding and vector store handling
This commit includes the following improvements:

- Update the `memoryEmbedding` function to use the `PAMemoryVectorStore` instead of the generic `MemoryVectorStore`. This ensures that the vector store is specifically designed for the Page Assist application.
- Modify the `useMessage` hook to use the `PAMemoryVectorStore` type for the `keepTrackOfEmbedding` state.
- Update the `rerankDocs` function to use the `EmbeddingsInterface` type instead of the deprecated `Embeddings` type.
- Add a new `PageAssistVectorStore` class that extends the `VectorStore` interface and provides a custom implementation for the Page Assist application.

These changes improve the handling of memory embeddings and vector stores, ensuring better compatibility and performance within the Page Assist application.
2024-11-16 19:33:51 +05:30
n4ze3m
9089653961 Fix: Handle PDF content in Firefox
Firefox does not allow extensions to run content scripts on PDF pages, so we have to work around this limitation. This commit adds a workaround that retrieves the PDF URL and type directly from the tab. This ensures that the extension can handle PDFs in Firefox while waiting for the bug in Firefox to be fixed.
2024-11-02 16:05:58 +05:30
n4ze3m
768ff2e555 feat: Improve model selection and embedding
Refactor embedding models and their handling to improve performance and simplify the process.
Add a new model selection mechanism,  and enhance the UI for model selection, offering clearer and more user-friendly options for embedding models.
Refactor embeddings to use a common model for page assist and RAG, further improving performance and streamlining the workflow.
2024-10-12 23:32:00 +05:30
n4ze3m
ddb8993f17 feat: Support LMStudio models
Adds support for LMStudio models, allowing users to access and use them within the application. This involves:

- Adding new functions to `db/models.ts` to handle LMStudio model IDs and fetch their information from the OpenAI API.
- Modifying the `ollamaFormatAllCustomModels` function to include LMStudio models in the list of available models.
- Introducing a timeout mechanism in `libs/openai.ts` to prevent API requests from hanging.

This change enhances the model selection experience, providing users with a wider range of models to choose from.
2024-10-12 19:05:21 +05:30
n4ze3m
f1e40d5908 feat: Add OpenAI provider support 2024-10-12 18:28:29 +05:30
n4ze3m
2a2610afb8 feat: add model management UI
This commit introduces a new UI for managing models within the OpenAI integration. This UI allows users to view, add, and delete OpenAI models associated with their OpenAI providers. It includes functionality to fetch and refresh model lists, as well as to search for specific models. These changes enhance the user experience by offering greater control over their OpenAI model interactions.

This commit also includes improvements to the existing OpenAI configuration UI, enabling users to seamlessly manage multiple OpenAI providers and associated models.
2024-09-29 19:12:19 +05:30
Colin Campbell
95a4d9f357 headers-api-everywhere: Add headers to all api calls 2024-08-22 10:11:00 +02:00
n4ze3m
943813f759 feat: Add notification support for knowledge base processing 2024-07-16 10:42:32 +05:30
n4ze3m
9c8584f1c4 feat: Add support for sending notification after knowledge base processing 2024-07-16 00:37:50 +05:30
n4ze3m
533e38c287 chore: Update Layout component to truncate long model names 2024-05-27 21:09:16 +05:30
n4ze3m
8899a42331 feat: Add support for Mammoth library for docx file uploads 2024-05-24 18:26:28 +05:30
n4ze3m
e94edf5c89 chore: Update URL rewrite logic for runtime 2024-05-12 23:54:48 +05:30
n4ze3m
62ffe8346e chore: Update logic of runtime url rewrite 2024-05-12 21:14:27 +05:30
n4ze3m
79e2013fbd few bug fixes 2024-05-12 11:38:01 +05:30
n4ze3m
f9f621c920 chore: Update .gitignore and add .idea folder, update npm dependencies, and improve code logic for chat history and knowledge export/import 2024-05-11 19:32:36 +05:30
n4ze3m
677aa6ef51 feat: Add export/import functions for chat history, promt and knowledge 2024-05-08 13:42:59 +05:30
n4ze3m
cfcf718769 Remeber recently used model 2024-04-16 23:04:25 +05:30
n4ze3m
c914233610 Update dependencies and fix whitespace formatting in isTTSEnabled function in tts.ts 2024-04-15 11:32:30 +05:30
n4ze3m
d6d2eae5ef knownledge preview 2024-04-06 20:18:46 +05:30
n4ze3m
0de5ea0b04 Add d3-dsv and @types/d3-dsv dependencies 2024-04-06 14:02:22 +05:30
n4ze3m
dd496b7b98 Webui chat with x added 2024-04-06 00:30:23 +05:30
n4ze3m
ac347a3970 Update dependencies and fix import paths 2024-04-05 20:28:29 +05:30
n4ze3m
7b5062e5da Add about section to settings.json for multiple locales 2024-03-31 20:16:26 +05:30
n4ze3m
ea56a2ffa2 Add localization for manage search feature 2024-03-31 00:36:12 +05:30
n4ze3m
3904a74701 Refactor useMessage hook and remove unused code 2024-03-25 23:17:43 +05:30
n4ze3m
2381588e72 Update dependencies and refactor useMessage hook 2024-03-24 23:56:41 +05:30
n4ze3m
b33ee0366c Migrated to WXT 2024-03-23 14:44:05 +05:30
n4ze3m
78c44e13b0 Add edit functionality to PlaygroundMessage component 2024-03-16 00:30:41 +05:30
n4ze3m
5b04e55a03 Refactor message appending logic in useMessageOption hook 2024-03-14 23:43:58 +05:30
n4ze3m
7ce79bb134 Add ShareBtn component and update SettingsOptionLayout 2024-03-09 18:43:39 +05:30