From eecc7f3529163dff30aeaa04609323bddedfbe2c Mon Sep 17 00:00:00 2001 From: Jannik S <69747628+jannikstdl@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:32:21 +0100 Subject: [PATCH] Deleted unused checks --- backend/config.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/backend/config.py b/backend/config.py index 20bc7ad29..6b5431bce 100644 --- a/backend/config.py +++ b/backend/config.py @@ -223,18 +223,6 @@ if ENV == "prod" 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" - - - -def is_running_in_kubernetes(): - return 'KUBERNETES_SERVICE_HOST' in os.environ - -# Setze EMV auf True, wenn in Kubernetes -if is_running_in_kubernetes(): - os.environ['EMV'] = 'True' - print("Läuft in Kubernetes, EMV gesetzt auf True.") -else: - print("Läuft nicht in Kubernetes.") OLLAMA_BASE_URLS = os.environ.get("OLLAMA_BASE_URLS", "")