mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
parent
d1f4c83c31
commit
8363e24e58
1 changed files with 2 additions and 2 deletions
|
@ -5499,7 +5499,7 @@ def validate_environment(model: Optional[str] = None) -> dict:
|
|||
}
|
||||
## EXTRACT LLM PROVIDER - if model name provided
|
||||
try:
|
||||
custom_llm_provider = get_llm_provider(model=model)
|
||||
_, custom_llm_provider, _, _ = get_llm_provider(model=model)
|
||||
except:
|
||||
custom_llm_provider = None
|
||||
# # check if llm provider part of model name
|
||||
|
@ -5593,7 +5593,7 @@ def validate_environment(model: Optional[str] = None) -> dict:
|
|||
## openai - chatcompletion + text completion
|
||||
if (
|
||||
model in litellm.open_ai_chat_completion_models
|
||||
or litellm.open_ai_text_completion_models
|
||||
or model in litellm.open_ai_text_completion_models
|
||||
):
|
||||
if "OPENAI_API_KEY" in os.environ:
|
||||
keys_in_environment = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue