Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ { | ||
"type": "module", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"scripts": { | ||
@@ -9,0 +9,0 @@ "test": "bun test src/", |
@@ -8,3 +8,3 @@ // model-fetcher-service.ts | ||
LMSTUDIO_BASE_URL, | ||
OLLAMA_BASE_URL, OPENAI_BASE_URL, | ||
OLLAMA_BASE_URL, OPENAI_BASE_URL, | ||
OPENROUTER_BASE_URL, | ||
@@ -24,3 +24,3 @@ XAI_BASE_URL | ||
XAIModel, | ||
} from "./model-types"; | ||
@@ -214,4 +214,4 @@ | ||
// ----------------------------- | ||
async listOllamaModels(): Promise<UnifiedModel[]> { | ||
const response = await fetch(`${process.env.OLLAMA_BASE_URL || "http://localhost:11434"}/api/tags`); | ||
async listOllamaModels({ baseUrl = "http://localhost:11434" }: { baseUrl: string }): Promise<UnifiedModel[]> { | ||
const response = await fetch(`${baseUrl}/api/tags`); | ||
if (!response.ok) { | ||
@@ -218,0 +218,0 @@ const errorText = await response.text(); |
Sorry, the diff of this file is not supported yet
85989