76 Commits

Author SHA1 Message Date
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
d64c84fc83 feat: Implement Ollama embedding
Adds support for Ollama embedding, enabling the use of Ollama as an embedding model for RAG.

This allows users to leverage Ollama's advanced embedding capabilities for better document understanding and retrieval.
2024-10-13 19:07:01 +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
824ecf0a8c feat: Add LaTeX support to the markdown renderer
Adds LaTeX support to the markdown renderer using `rehype-katex` for math equations.

- Replaces block-level LaTeX delimiters `\[ \]` with `$$ $$`.
- Replaces inline LaTeX delimiters `\( \)` with `$ $`.
- Preprocesses the message before rendering to ensure correct delimiters.

This improves the rendering of markdown messages containing mathematical expressions, enhancing the user experience.
2024-09-08 11:53:15 +05:30
Colin Campbell
13cbc5b084 stt-to-storage: UX - Move speechToText from state to storage. 2024-08-25 13:37:39 +02:00
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
eccf8f8a88 feat: Enable title generation in GeneralSettings component 2024-08-05 00:49:27 +05:30
n4ze3m
ac9c9ca887 feat: copilot context menu for tool 2024-08-03 23:00:57 +05:30
n4ze3m
440ecf86b2 feat: Refactor useMessage hook for website embedding options and improvements 2024-07-23 00:31:15 +05:30
n4ze3m
9521707160 feat: Update useMessage hook with website embedding options and improvements 2024-07-22 00:36:27 +05:30
n4ze3m
f5f0157260 fix: scroll issue playground 2024-07-14 23:13:48 +05:30
n4ze3m
031e74f609 feat: Add option to restore last used model for previous chats 2024-07-08 23:56:25 +05:30
n4ze3m
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30
n4ze3m
5ac03f5123 refactor: Update useScrollAnchor to handle user scrolling and overflow 2024-06-25 21:13:45 +05:30
n4ze3m
68bd3e651b refactor: Update version to 1.1.12, fix selectedModel spacing, and update meta viewport tags 2024-06-08 23:58:40 +05:30
n4ze3m
f12523d3f0 feat: Add useScrollAnchor hook for scrolling functionality 2024-05-30 23:49:28 +05:30
n4ze3m
d5f7d0a470 fix 2024-05-25 13:46:42 +05:30
n4ze3m
8899a42331 feat: Add support for Mammoth library for docx file uploads 2024-05-24 18:26:28 +05:30
n4ze3m
11f5eba3ed chore: Update Lucide icons and improve Current Chat Model Settings 2024-05-23 23:00:42 +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
160927a5a6 chore: Refactor Sidepanel Chat body and form components 2024-05-18 16:25:06 +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
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
c914233610 Update dependencies and fix whitespace formatting in isTTSEnabled function in tts.ts 2024-04-15 11:32:30 +05:30
n4ze3m
36c1cae5fb Update localization messages for Chinese, English, and Japanese languages 2024-04-14 00:42:47 +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
f5eca6a97b Update localization strings and settings 2024-03-27 20:00:13 +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
502759fae6 Update language files and fix UI issues 2024-03-24 17:07:21 +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