This commit is contained in:
liuhao1024 2026-04-24 17:23:22 -05:00 committed by GitHub
commit 01ed64e176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 3 deletions

View file

@ -2070,7 +2070,7 @@ def _normalize_custom_provider_entry(
for url_key in ("base_url", "url", "api"):
raw_url = entry.get(url_key)
if isinstance(raw_url, str) and raw_url.strip():
candidate = raw_url.strip()
candidate = str(_expand_env_vars(raw_url)).strip()
parsed = urlparse(candidate)
if parsed.scheme and parsed.netloc:
base_url = candidate