mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
Merge 88d71e7535 into c599a41b84
This commit is contained in:
commit
01ed64e176
3 changed files with 48 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue