59 Commits

Author SHA1 Message Date
李芳
970ffdac15 Merge branch 'feat/metering' of gitea.internetapi.cn:iod/page-assist into feat/page 2025-02-22 17:00:58 +08:00
zhaoweijie
da162be01d feat: add metering data 2025-02-22 16:57:19 +08:00
zhaoweijie
6d79d42925 feat: add metering data 2025-02-22 14:09:57 +08:00
CaiHQ
51188b1428 update search result in prompt 2025-02-15 13:02:24 +08:00
Nex Zhu
e8471f1802 feat: add IoD search 2025-02-14 18:17:12 +08:00
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
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
48b7a2824a feat: Add option to enable internet search by default 2025-01-12 00:19:39 +05:30
n4ze3m
9674b842ef feat: Add Ollama model settings for tfsZ, numKeep, numThread, and useMlock 2025-01-05 15:11:43 +05:30
n4ze3m
aa49f03f63 feat: Add support for minP, repeatLastN, and repeatPenalty model settings 2024-12-28 17:38:52 +05:30
n4ze3m
18bc597dc7 feat: Add OCR support to message formatting 2024-12-28 16:27:49 +05:30
n4ze3m
bd08526935 feat: Add support for saving and restoring last used system prompt 2024-12-07 18:15:14 +05:30
n4ze3m
6d80798da9 feat: Add useMMap option to model settings 2024-11-30 20:17:03 +05:30
n4ze3m
0f75de02cb Fix: Update temporary chat history
This commit addresses an issue where temporary chat history was not being updated correctly when using voice input.

The `setHistoryId` function is now called within the `saveMessageOnError` function to ensure that the history ID is set correctly when a message is saved.
2024-11-10 18:08:05 +05:30
n4ze3m
9c7a3f5ddc fix: Prevent errors from optional fields in chat history and chunk content
The code was relying on optional fields like `content` in chat history and chunk objects, leading to potential errors if these fields were missing. This commit ensures proper handling of these fields by adding optional chaining (`?.`) for safer access. This prevents crashes and ensures the application handles the missing fields gracefully.
2024-11-10 12:37:48 +05:30
n4ze3m
f8791a0707 feat: Introduce temporary chat mode
Adds a new "Temporary Chat" mode for quick, non-persistent conversations. The new mode is available in the header bar and will trigger a visually distinct chat experience with a temporary background color. Temporary chats do not save to the chat history and are meant for short, one-off interactions. This feature enhances flexibility and provides a more convenient option for users who need to quickly interact with the AI without committing the conversation to their history.
2024-11-09 19:10:34 +05:30
n4ze3m
fd654cafdb feat: Add max tokens setting for model generations
Adds a new setting to control the maximum number of tokens generated by the model. This provides more control over the length of responses and can be useful for limiting the amount of text generated in certain situations.
2024-11-09 16:56:47 +05:30
n4ze3m
9f383a81b6 feat: Add generation info to messages
This commit introduces a new feature that displays generation information for each message in the chat.

The generation info is displayed in a popover and includes details about the model used, the prompt, and other relevant information. This helps users understand how their messages were generated and troubleshoot any issues that may arise.

The generation info is retrieved from the LLM response and is stored in the database alongside other message details.

This commit also includes translations for the generation info label in all supported languages.
2024-11-09 15:17:59 +05:30
n4ze3m
65ba2ff898 feat: add save and send functionality for user message
Adds a "Save" button to the edit message form in Playground, allowing users to save changes without immediately submitting them. This also introduces a new `isSend` flag to the `onEditFormSubmit` prop, enabling developers to control whether a message should be sent immediately or saved for later submission. This enhances flexibility and user control during the message editing process.
2024-11-03 23:38:41 +05:30
n4ze3m
9cc309e9fd feat: Add code download functionality
Adds a new "Download Code" button to the code block component, allowing users to download the code displayed for offline use.

This feature enhances user convenience and provides a more versatile experience for exploring and utilizing code snippets.
2024-10-26 15:37:02 +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
ff371d6eef feat: Add OpenAI Provider Selection
Add a provider selection dropdown to the OpenAI settings, enabling users to choose from pre-configured options like "Azure" or "Custom." This streamlines setup and allows for more flexibility in configuring OpenAI API endpoints. The dropdown pre-populates base URLs and names based on the selected provider.

The dropdown also automatically populates base URLs and names based on the selected provider, further simplifying the configuration process.
2024-10-12 16:53:42 +05:30
n4ze3m
3d8c8671e1 Merge remote-tracking branch 'origin/next' into openai 2024-10-02 20:10:21 +05:30
n4ze3m
0e44a7ad4b feat: Add temporary system prompt
Adds a new setting that allows users to set a temporary system prompt for the current chat.
This prompt will override the selected system prompt if it exists.
The new setting is available in the "Current Chat Model Settings" modal.
This feature provides a way to quickly experiment with different system prompts without having to change the default setting.
2024-10-02 12:30:52 +05:30
n4ze3m
192e3893bb feat: support custom models for messages
This commit introduces support for custom models in the message history generation process. Previously, the history would format messages using LangChain's standard message structure, which is not compatible with custom models. This change allows for correct history formatting regardless of the selected model type, enhancing compatibility and user experience.
2024-09-29 23:59:15 +05:30
n4ze3m
53d999a596 feat: Add system and quick prompts on side panel 2024-09-14 12:07:54 +05:30
n4ze3m
35b8579028 feat: Add Number of Retrieved Documents on RAG 2024-08-20 18:32:01 +05:30
n4ze3m
4ef17ff479 feat: support for GPU layer 2024-08-20 16:11:50 +05:30
n4ze3m
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30
n4ze3m
b3a455382c chore: Update version to 1.1.9 and add Model Settings to Ollama settings page 2024-05-23 00:39:44 +05:30
n4ze3m
f389e45401 chore: Update message display logic to include cursor indicator 2024-05-08 10:16:10 +05:30
n4ze3m
cbea863cdb Fix whitespace formatting in Markdown.tsx, Message.tsx, useMessage.tsx, and useMessageOption.tsx 2024-04-20 23:50:48 +05:30
n4ze3m
cfcf718769 Remeber recently used model 2024-04-16 23:04:25 +05:30
n4ze3m
9262a5bb7c Update import statements, set TTSEnabled in TTSModeSettings, and fix fetchChatModels error handling 2024-04-13 14:25:09 +05:30
n4ze3m
a3810cd534 Update import statement in local-duckduckgo.ts, prompt.tsx, wxt.config.ts, webui.tsx, PlaygroundChat.tsx, other.tsx, Markdown.tsx, and useMessageOption.tsx 2024-04-11 00:08:20 +05:30
n4ze3m
d6d2eae5ef knownledge preview 2024-04-06 20:18:46 +05:30
n4ze3m
dd496b7b98 Webui chat with x added 2024-04-06 00:30:23 +05:30
n4ze3m
aae2ddecbc Update useMessageOption hook and Playground component 2024-04-05 23:17:55 +05:30
n4ze3m
ac347a3970 Update dependencies and fix import paths 2024-04-05 20:28:29 +05:30
n4ze3m
ea56a2ffa2 Add localization for manage search feature 2024-03-31 00:36:12 +05:30
n4ze3m
9a2adbd859 Add i18n 2024-03-24 12:43:43 +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
21ab18dd7d Refactor prompt icons and add navigation to clearChat 2024-03-04 15:01:53 +05:30
n4ze3m
1b689c91c0 Add search mode settings and textarea focus on form submission 2024-03-04 00:32:01 +05:30
n4ze3m
a87c56061c Update component imports and add conditional focus in PlaygroundForm 2024-03-03 23:30:42 +05:30
n4ze3m
e0c2c0c745 Remove console.log statements and unused dependencies 2024-03-02 19:50:51 +05:30