lmstudio embeddings p1
This commit is contained in:
parent
648d4bfa4b
commit
4683ce871c
3 changed files with 15 additions and 1 deletions
1
core/index.d.ts
vendored
1
core/index.d.ts
vendored
|
|
@ -834,6 +834,7 @@ export type EmbeddingsProviderName =
|
|||
| "ollama"
|
||||
| "openai"
|
||||
| "cohere"
|
||||
| "lmstudio"
|
||||
| "free-trial"
|
||||
| "gemini"
|
||||
| "continue-proxy"
|
||||
|
|
|
|||
13
core/indexing/embeddings/LMStudio.ts
Normal file
13
core/indexing/embeddings/LMStudio.ts
Normal 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;
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue