fix(auxiliary): preserve main provider base url (#45587)

This commit is contained in:
Teknium
2026-06-13 05:44:18 -07:00
committed by GitHub
parent 62b4618e9a
commit 4b646bc21e
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -3190,7 +3190,7 @@ def _resolve_auto(main_runtime: Optional[Dict[str, Any]] = None) -> Tuple[Option
if (main_provider and main_model
and main_provider not in {"auto", ""}):
resolved_provider = main_provider
explicit_base_url = None
explicit_base_url = runtime_base_url or None
explicit_api_key = None
if runtime_base_url and (main_provider == "custom" or main_provider.startswith("custom:")):
resolved_provider = "custom"