77 Commits

Author SHA1 Message Date
n4ze3m
43b4f076e9 feat: Add more options for chat messages to copy, download chat entirely 2024-12-14 18:30:27 +05:30
n4ze3m
d45b279348 feat: Add SaveButton component to CurrentChatModelSettings 2024-12-01 17:57:09 +05:30
n4ze3m
5687517238 feat: Add save functionality for system prompt and model settings 2024-12-01 15:52:52 +05:30
n4ze3m
6d80798da9 feat: Add useMMap option to model settings 2024-11-30 20:17:03 +05:30
n4ze3m
64e88bd493 feat: Add support for chat mode in MessageSource component
This commit extends the `MessageSource` component to support the `chat` mode in addition to the existing `rag` mode. This allows the component to handle and display messages from both chat and RAG (Rapid Automated Generation) sources.
2024-11-16 19:33:20 +05:30
n4ze3m
c6a62126dd feat: Add LlamaFile support
Add support for LlamaFile, a new model provider that allows users to interact with models stored in LlamaFile format. This includes:

- Adding an icon for LlamaFile in the provider selection menu.
- Updating the model provider selection to include LlamaFile.
- Updating the model handling logic to properly identify and process LlamaFile models.
- Updating the API providers list to include LlamaFile.

This enables users to leverage the capabilities of LlamaFile models within the application.
2024-11-10 14:02:44 +05:30
n4ze3m
8fbdfc35d3 feat(settings): Use selected system prompt in current chat model temp system fallback
Adds support for using the currently selected system prompt in the current model settings. This allows users to fine-tune their chat experience based on their preferred prompt.
2024-11-09 18:09:47 +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
a2f9002b81 feat: enhance playground UI
Refine the Playground's UI to improve user experience:

- Streamline chat window layout for better message readability
- Introduce a knowledge selection dropdown for easier context setting
- Improve image upload integration for a smoother workflow
- Optimize spacing and styling for a more polished visual appearance
2024-10-20 17:45:56 +05:30
n4ze3m
7be993c057 feat: Add HTML preview to code blocks
Adds an HTML preview feature to the code block component, allowing users to view the rendered output of their HTML code snippets. This improves the user experience by providing a more interactive and informative way to understand the code.
2024-10-19 23:54:09 +05:30
n4ze3m
d83ba79035 refactor add modal 2024-10-13 16:10:52 +05:30
n4ze3m
f1e40d5908 feat: Add OpenAI provider support 2024-10-12 18:28:29 +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
1ec44f047d feat(share): Add history title to share modal
Adds the title of the current chat history to the share modal. This makes it easier for users to share their conversations with others, as the title provides context for the conversation.

The title is fetched from the database and displayed in the share modal.
2024-10-02 13:55:38 +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
c8620637f8 feat: add OpenAI model support
Adds support for OpenAI models, allowing users to leverage various OpenAI models directly from the application. This includes custom OpenAI models and OpenAI-specific configurations for seamless integration.
2024-09-29 19:57:26 +05:30
n4ze3m
53d999a596 feat: Add system and quick prompts on side panel 2024-09-14 12:07:54 +05:30
n4ze3m
e44c47905a feat: Remove unnecessary memoization 2024-09-08 20:52:30 +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
n4ze3m
3f61c6afc2 feat: Add citations display to playground message
Adds a collapsible section to the playground message that displays citations for the response. This is intended to help users better understand the sources used by the model.
2024-08-31 21:06:32 +05:30
Colin Campbell
ca2c127cbd headers-api-everywhere: Add headers to all api calls 2024-08-22 10:12:03 +02:00
n4ze3m
4ef17ff479 feat: support for GPU layer 2024-08-20 16:11:50 +05:30
n4ze3m
1bb6d3a89a feat: Add tag colors for custom and copilot prompts in PromptBody component 2024-08-04 11:23:29 +05:30
n4ze3m
58304d9ca7 feat: Update translations for copilot context menu options 2024-08-03 23:51:17 +05:30
n4ze3m
ac9c9ca887 feat: copilot context menu for tool 2024-08-03 23:00:57 +05:30
n4ze3m
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30
n4ze3m
52f9a2953a feat: Add custom headers support 2024-06-30 00:21:43 +05:30
n4ze3m
52ccbc67bb feat: Add rehype-katex dependency for rendering math equations in Markdown 2024-06-09 11:56:49 +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
4a5713d6e4 refactor: Remove unnecessary flex classes from CodeBlock component 2024-06-03 15:55:12 +05:30
n4ze3m
692c0887cc new settings for rag 2024-06-03 00:30:10 +05:30
n4ze3m
024d0506f3 feat: Add CodeBlock component for syntax highlighting in Markdown 2024-05-30 23:49:18 +05:30
n4ze3m
f5b0cc24ac chore: Update save button styling in EditMessageForm 2024-05-29 00:21:56 +05:30
n4ze3m
961f5180c6 Added ability to resume previous chat on copilot 2024-05-24 21:01:10 +05:30
n4ze3m
9e2ef72486 chore: Update Lucide icons and improve Current Chat Model Settings 2024-05-24 20:00:09 +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
8662fd0693 chore: Update form components to handle pasted files 2024-05-18 20:54:43 +05:30
n4ze3m
084dc57b0f chore: Update page loading fallback components 2024-05-13 12:58:52 +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
677aa6ef51 feat: Add export/import functions for chat history, promt and knowledge 2024-05-08 13:42:59 +05:30
n4ze3m
88ad1fcab7 feat: Add ModelSelect component to SidepanelForm 2024-05-08 10:44:51 +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
36c1cae5fb Update localization messages for Chinese, English, and Japanese languages 2024-04-14 00:42:47 +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