We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5653c8 commit 71cacf2Copy full SHA for 71cacf2
src/dstack/_internal/proxy/gateway/model_routers/sglang.py
@@ -142,8 +142,11 @@ def update_replicas(self, replica_urls: List[str]) -> None:
142
for worker in current_workers:
143
url = worker.get("url")
144
if url and isinstance(url, str):
145
- current_worker_urls.add(url)
146
- target_worker_urls = set(replica_urls)
+ # Normalize URL by removing trailing slashes to avoid path artifacts
+ normalized_url = url.rstrip("/")
147
+ current_worker_urls.add(normalized_url)
148
+ # Normalize target URLs to ensure consistent comparison
149
+ target_worker_urls = {url.rstrip("/") for url in replica_urls}
150
151
# Workers to add
152
workers_to_add = target_worker_urls - current_worker_urls
0 commit comments