fix: add base path to ollama api routes

This commit is contained in:
Gemini AI
2025-12-27 12:23:22 +04:00
Unverified
parent 759f7feee4
commit 9d0ec1f22e

View File

@@ -5,8 +5,9 @@ export interface OllamaCloudConfig {
endpoint?: string; endpoint?: string;
} }
const LOCAL_MODELS_URL = "/api/ollama/models"; const BASE_PATH = "/tools/promptarch";
const LOCAL_CHAT_URL = "/api/ollama/chat"; const LOCAL_MODELS_URL = `${BASE_PATH}/api/ollama/models`;
const LOCAL_CHAT_URL = `${BASE_PATH}/api/ollama/chat`;
const DEFAULT_MODELS = [ const DEFAULT_MODELS = [
"gpt-oss:120b", "gpt-oss:120b",
"llama3.1:latest", "llama3.1:latest",