Skip to content

Commit 2f15872

Browse files
committed
Fix in-cluster backend detection
1 parent cdcea4f commit 2f15872

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

web-apps/chat/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class PossibleSystemPromptException(Exception):
6161
streaming=True,
6262
)
6363

64-
6564
def inference(latest_message, history):
6665
# Allow mutating global variable
6766
global BACKEND_INITIALISED

web-apps/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def load_settings() -> dict:
9595
"Please check for typos"
9696
)
9797
settings = {**defaults, **overrides}
98-
if "backend_url" not in settings or not settings["backend_url"]:
98+
if "backend_url" not in settings or settings["backend_url"] == defaults["backend_url"]:
9999
# Try to detect in-cluster address
100100
in_cluster_backend = api_address_in_cluster()
101101
if not in_cluster_backend:

0 commit comments

Comments
 (0)