393 Commits

Author SHA1 Message Date
Muhammed Nazeem
0a15e83b6f
Merge pull request #218 from n4ze3m/next
v1.3.1
2024-10-27 00:31:03 +05:30
n4ze3m
be3f627a0f feat: Add model download button to Hugging Face website
Adds a button to the Hugging Face website allowing users to download models directly from the Page Assist extension. The button appears next to the copy snippet button on model pages. This allows users to easily pull models directly to their local machine for use with Ollama.

The button triggers a confirmation dialog, ensuring users understand the action before proceeding. The process leverages a background script to handle the actual download and displays a message during the download process.
2024-10-26 23:41:29 +05:30
n4ze3m
eb643b7c8c Fix: Update placeholder text for model input
The placeholder text for the model input was previously incorrect. This commit updates the placeholder to reflect the expected format for model names.
2024-10-26 23:41:00 +05:30
n4ze3m
d5df8b5c5f feat: add pin/unpin functionality to chat history
Adds pin/unpin functionality to the chat history sidebar, allowing users to keep important conversations readily accessible. This improves user experience and helps organize past interactions.

This feature includes:
- Pin/unpin buttons in the chat history sidebar.
- Updated database schema to include `is_pinned` field for chat history items.
- Localized translations for pin/unpin actions.
- Updated UI to display pinned items at the top of the list.
2024-10-26 21:10:28 +05:30
n4ze3m
f01f9d0482 feat: Remove language detection
The language detection mechanism has been removed to streamline the translation process and ensure a consistent user experience across all locales. This change aims to simplify the i18n setup and minimize potential complexities associated with dynamic language switching.
2024-10-26 15:47:00 +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
fd5339d90a Bump version to 1.3.1
Minor version bump to reflect updates.
2024-10-19 18:22:33 +05:30
Muhammed Nazeem
4551ac60b3
Merge pull request #209 from n4ze3m/next
v1.3.0
2024-10-13 20:45:39 +05:30
n4ze3m
d5902dd6ef Fix: Add missing step to resolve connection issue
Clarify the instructions for resolving connection issues with Ollama by explicitly mentioning the need to save changes.
2024-10-13 20:28:38 +05:30
Muhammed Nazeem
d9dc18673b
Merge pull request #197 from n4ze3m/openai
OpenAI Compatible api support
2024-10-13 19:54:28 +05:30
n4ze3m
b9973bbf78 feat: Add OpenAI API provider support
Adds the "OpenAI" provider to the list of available OpenAI API providers, enabling users to connect to and use their own OpenAI API keys. This change expands the flexibility of the application, allowing users to leverage the power of OpenAI models directly without relying solely on the provided provider.
2024-10-13 19:52:16 +05:30
n4ze3m
0ea69afd5c feat: Display model name in knowledge settings
Shorten the displayed embedding model names in the knowledge settings by removing the "embedding" suffix. This improves readability and makes the table more concise.
2024-10-13 19:10:42 +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
ff4473c35b feat: Add model type support
Adds model type support for chat and embedding models. This allows users to specify which type of model they want to use when adding custom models.

Additionally, this commit introduces a more descriptive interface for adding custom models, enhancing the clarity of the model selection process.
2024-10-13 18:22:16 +05:30
n4ze3m
4e04155471 Fix: Update dependencies and documentation
Updated dependencies to use Bun for package management and updated documentation to reflect the changes. Also updated the browser compatibility list to include LibreWolf and Zen Browser.
2024-10-13 18:22:08 +05:30
n4ze3m
d83ba79035 refactor add modal 2024-10-13 16:10:52 +05:30
n4ze3m
405adc0d31 Merge remote-tracking branch 'origin/next' into openai 2024-10-13 12:36:21 +05:30
Muhammed Nazeem
18c3673a96
Merge pull request #208 from Abubakar115e/main
Support for Danish and Norwegian language support.
2024-10-13 12:35:10 +05:30
n4ze3m
4b4036e0b0 Refactor: OpenAI settings UI & language
Update the user interface for the OpenAI settings to be more informative and consistent. Improved language around "OpenAI API Settings" to be more accurate and less technical. Also added a helpful tip for using LM Studio as a provider.
2024-10-12 23:49:12 +05:30
n4ze3m
30eb320c19 Fix: Improve settings layout and models refresh
Refine settings layout for better visual flow, enlarge settings sidebar for easier viewing, and adjust model refresh logic for more responsive updates.

Refactor: Add more visual weight to the settings panel and optimize model refresh logic.

Refactor: Enhance the visual appeal of settings panel by increasing its width and improving model refresh behavior for better user experience.
2024-10-12 23:39:31 +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
ba071ffeb1 add embedding support 2024-10-12 21:12:45 +05:30
n4ze3m
1300945b75 Fix: Prevent model selection modal from appearing for LM Studio provider
When using the LM Studio provider, the model selection modal was incorrectly appearing. This commit prevents the modal from appearing when the provider is set to LM Studio. This ensures that the user experience is consistent across all providers.
2024-10-12 19:28:08 +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
acce9b97f6 feat: Improve UI for loading OpenAI models
Make the loading state of OpenAI models more visually appealing and user-friendly by replacing the default `Spin` component with a more contextually relevant loading animation within a centered container. This provides a better visual cue to users while models are being fetched.
2024-10-12 16:54:46 +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
Abubakar115e
d2c5785aac Added more language to support auto browser recognition 2024-10-11 17:36:04 +02:00
Abubakar115e
41b11e8210 Merge branch 'main' of https://github.com/Abubakar115e/page-assist 2024-10-11 17:33:45 +02:00
Abubakar115e
6fc29310ba spell issues 2024-10-11 17:31:35 +02:00
Abubakar115e
ec33015039 Maybe it works? 2024-10-10 21:28:04 +02:00
Abubakar115e
718e1c8501 Spell 2024-10-10 17:39:01 +02:00
Abubakar115e
d3ccbbfbe3 spell fix 2024-10-10 17:38:16 +02:00
Abubakar115e
46d2e6a75b Norwegian langauge support, but I need to do some small fixes 2024-10-10 17:29:08 +02:00
Abubakar115e
832c565303 n4ze3m you can now merge the two git branches 2024-10-06 09:05:51 +02:00
Abubakar115e
43a88ab83c Everythings works for Danish now 2024-10-06 08:54:33 +02:00
Abubakar115e
7b26e64dac Danish language support is fully functioning 2024-10-06 08:46:24 +02:00
Abubakar115e
4363ac1b9c Added support for Danish Language 2024-10-06 08:21:29 +02:00
n4ze3m
3d8c8671e1 Merge remote-tracking branch 'origin/next' into openai 2024-10-02 20:10:21 +05:30
Muhammed Nazeem
2a2309d44c
Merge pull request #196 from n4ze3m/next
v1.2.4
2024-10-02 18:07:06 +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
caeb923d00 Fix: Remove debugging log statement
Removed a debugging `console.log` statement that was printing the `isCustom` variable and the model name. This statement was no longer necessary and was potentially causing issues.
2024-09-30 10:28:45 +05:30
n4ze3m
efec675b9a Fix: Replace empty API keys with temporary placeholder
The previous code used an empty string for the `apiKey` when no key was provided, which could lead to unexpected behavior. This commit replaces those with a temporary placeholder ("temp") to avoid potential errors and make the code more robust.
2024-09-30 10:28:35 +05:30
n4ze3m
d7510333a7 Bump version to 1.3.0
Prepares the project for the next release with updated version information.
2024-09-29 23:59:41 +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
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
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