mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) use OpenAI organization in ahealth_check
This commit is contained in:
parent
42005ad964
commit
2806a2e99f
3 changed files with 7 additions and 2 deletions
|
@ -1411,7 +1411,7 @@ class Router:
|
|||
max_retries = litellm.get_secret(max_retries_env_name)
|
||||
litellm_params["max_retries"] = max_retries
|
||||
|
||||
organization = litellm_params.pop("organization", None)
|
||||
organization = litellm_params.get("organization", None)
|
||||
if isinstance(organization, str) and organization.startswith("os.environ/"):
|
||||
organization_env_name = organization.replace("os.environ/", "")
|
||||
organization = litellm.get_secret(organization_env_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue