lmstudio embeddings p1

This commit is contained in:
Dallin Romney 2024-11-08 09:09:46 -08:00
parent 648d4bfa4b
commit 4683ce871c
3 changed files with 15 additions and 1 deletions

1
core/index.d.ts vendored
View file

@ -834,6 +834,7 @@ export type EmbeddingsProviderName =
| "ollama"
| "openai"
| "cohere"
| "lmstudio"
| "free-trial"
| "gemini"
| "continue-proxy"

View file

@ -0,0 +1,13 @@
import { EmbeddingsProviderName, EmbedOptions } from "../..";
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider";
class LMStudioEmbeddingsProvider extends OpenAIEmbeddingsProvider {
static providerName: EmbeddingsProviderName = "lmstudio";
static defaultOptions: Partial<EmbedOptions> | undefined = {
apiBase: "http://localhost:1234/v1",
model: "BAAI/bge-en-icl",
};
}
export default LMStudioEmbeddingsProvider;

View file

@ -8,7 +8,7 @@ TextGenWebUI is a comprehensive, open-source language model UI and local server.
{
"title": "Text Generation WebUI",
"provider": "text-gen-webui",
"apiBase": "http://localhost:5000",
"apiBase": "http://localhost:5000/v1",
"model": "MODEL_NAME"
}
]