mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
fix(chatgpt): preserve selected credentials in health provider lookup
This commit is contained in:
parent
2123d9ddc6
commit
00a3a47429
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue