From 20263f742a70126df8b25089c8efeb8e093e9b93 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 3 Mar 2024 19:55:32 -0800 Subject: [PATCH] refac: confusing ollama proxy route path --- backend/main.py | 2 +- src/lib/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index 94938b249..9c71091e3 100644 --- a/backend/main.py +++ b/backend/main.py @@ -104,7 +104,7 @@ async def auth_middleware(request: Request, call_next): app.mount("/api/v1", webui_app) app.mount("/litellm/api", litellm_app) -app.mount("/ollama/api", ollama_app) +app.mount("/ollama", ollama_app) app.mount("/openai/api", openai_app) app.mount("/images/api/v1", images_app) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index f4fc4aea3..2042198fb 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -7,7 +7,7 @@ export const WEBUI_BASE_URL = dev ? `http://${location.hostname}:8080` : ``; export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`; export const LITELLM_API_BASE_URL = `${WEBUI_BASE_URL}/litellm/api`; -export const OLLAMA_API_BASE_URL = `${WEBUI_BASE_URL}/ollama/api`; +export const OLLAMA_API_BASE_URL = `${WEBUI_BASE_URL}/ollama`; export const OPENAI_API_BASE_URL = `${WEBUI_BASE_URL}/openai/api`; export const AUDIO_API_BASE_URL = `${WEBUI_BASE_URL}/audio/api/v1`; export const IMAGES_API_BASE_URL = `${WEBUI_BASE_URL}/images/api/v1`;