From af366cf7320e72022360ad090b18db80cfbb6d0a Mon Sep 17 00:00:00 2001 From: Jannik S <69747628+jannikstdl@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:50:58 +0100 Subject: [PATCH] fix --- backend/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/config.py b/backend/config.py index 6b5431bce..385c9238a 100644 --- a/backend/config.py +++ b/backend/config.py @@ -218,8 +218,8 @@ if OLLAMA_BASE_URL == "" and OLLAMA_API_BASE_URL != "": else OLLAMA_API_BASE_URL ) -if ENV == "prod" and RUNNING_ON_K8S == "": - if OLLAMA_BASE_URL == "/ollama": +if ENV == "prod": + if OLLAMA_BASE_URL == "/ollama" and RUNNING_ON_K8S == "": OLLAMA_BASE_URL = "http://host.docker.internal:11434" else: OLLAMA_BASE_URL = "http://ollama-service.open-webui.svc.cluster.local:11434"