fix(chatgpt): preserve selected credentials in health provider lookup

This commit is contained in:
moe-berri 2026-10-26 12:34:27 -07:00
parent 2123d9ddc6
commit 00a3a47429
2 changed files with 2 additions and 0 deletions

View file

@ -9148,6 +9148,7 @@ async def ahealth_check(
custom_llm_provider=custom_llm_provider_from_params,
api_base=api_base_from_params,
api_key=api_key_from_params,
litellm_params=GenericLiteLLMParams(**model_params),
)
model_params["cache"] = {"no-cache": True} # don't used cached responses for making health check calls

View file

@ -5447,6 +5447,7 @@ async def test_unsaved_chatgpt_account_probe_requires_proxy_admin(
from starlette.requests import Request
from litellm.proxy import proxy_server
monkeypatch.setenv("CHATGPT_AUTH_FILE", str(tmp_path / "missing-default-auth.json"))
auth_file: Final = tmp_path / "auth.json"
auth_file.write_text(
json.dumps({"access_token": "token-probe", "account_id": "acct-probe", "expires_at": 4102444800})