mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix(cli): keep cached credential reads from initiating renewal
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
501baea61c
commit
347807a3c1
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ def get_stored_api_key(
|
|||
if expected_base_url is not None and token_data.get("base_url") != expected_base_url.rstrip("/"):
|
||||
return None
|
||||
if is_cli_token_fresh(token_data) or not token_data.get("refresh_token"):
|
||||
return _key_from_record(token_data, vault)
|
||||
return _key_from_record({**token_data, "refresh_token": None}, vault)
|
||||
try:
|
||||
with _credential_lock():
|
||||
return _get_stored_api_key(expected_base_url, vault)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue