13 Commits

Author SHA1 Message Date
n4ze3m
772000bff4 feat: Add support for Google AI (Gemini) as a custom model provider 2024-12-21 18:13:21 +05:30
n4ze3m
6d80798da9 feat: Add useMMap option to model settings 2024-11-30 20:17:03 +05:30
n4ze3m
a7f461da0b feat: Add multiple Ollama support
Adds support for using Ollama 2 as a model provider. This includes:

- Adding Ollama 2 to the list of supported providers in the UI
- Updating the model identification logic to properly handle Ollama 2 models
- Modifying the model loading and runtime configuration to work with Ollama 2
- Implementing Ollama 2 specific functionality in the embedding and chat models

This change allows users to leverage the capabilities of Ollama 2 for both embeddings and conversational AI tasks.
2024-11-10 15:31:28 +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
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
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
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
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
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30