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.
This commit is contained in:
n4ze3m
2024-11-10 14:02:44 +05:30
parent f52e3d564a
commit c6a62126dd
5 changed files with 117 additions and 2 deletions

View File

@@ -4,6 +4,11 @@ export const OAI_API_PROVIDERS = [
value: "lmstudio",
baseUrl: "http://localhost:1234/v1"
},
{
label: "LlamaFile",
value: "llamafile",
baseUrl: "http://127.0.0.1:8080/v1"
},
{
label: "OpenAI",
value: "openai",