🐛 add /v1 to LM Studio, other default apiBases
This commit is contained in:
parent
506f6a59cc
commit
40571360f1
5 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import BaseEmbeddingsProvider from "./BaseEmbeddingsProvider";
|
|||
|
||||
class OpenAIEmbeddingsProvider extends BaseEmbeddingsProvider {
|
||||
static defaultOptions: Partial<EmbedOptions> | undefined = {
|
||||
apiBase: "https://api.openai.com",
|
||||
apiBase: "https://api.openai.com/v1",
|
||||
model: "text-embedding-3-large",
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import OpenAI from "./OpenAI";
|
|||
class LMStudio extends OpenAI {
|
||||
static providerName: ModelProvider = "lmstudio";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "http://localhost:1234",
|
||||
apiBase: "http://localhost:1234/v1",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import OpenAI from "./OpenAI";
|
|||
class Mistral extends OpenAI {
|
||||
static providerName: ModelProvider = "mistral";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "https://api.mistral.ai",
|
||||
apiBase: "https://api.mistral.ai/v1",
|
||||
model: "mistral-small",
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import OpenAI from "./OpenAI";
|
|||
class TextGenWebUI extends OpenAI {
|
||||
static providerName: ModelProvider = "text-gen-webui";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
apiBase: "http://localhost:5000",
|
||||
apiBase: "http://localhost:5000/v1",
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -701,7 +701,7 @@ export const PROVIDER_INFO: { [key: string]: ModelInfo } = {
|
|||
icon: "lmstudio.png",
|
||||
tags: [ModelProviderTag["Local"], ModelProviderTag["Open-Source"]],
|
||||
params: {
|
||||
apiBase: "http://localhost:1234",
|
||||
apiBase: "http://localhost:1234/v1",
|
||||
},
|
||||
packages: [...osModels, deepseek],
|
||||
collectInputFor: [...completionParamsInputs],
|
||||
|
|
@ -803,7 +803,7 @@ After it's up and running, you can start using Continue.`,
|
|||
collectInputFor: [
|
||||
{
|
||||
...apiBaseInput,
|
||||
defaultValue: "http://localhost:8000",
|
||||
defaultValue: "http://localhost:8000/v1",
|
||||
},
|
||||
...completionParamsInputs,
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue