fix(main.py): support env var 'VERTEX_PROJECT' and 'VERTEX_LOCATION'

This commit is contained in:
Krrish Dholakia 2024-05-10 07:57:41 -07:00
parent a671046b45
commit 9a31f3d3d9
3 changed files with 47 additions and 3 deletions

View file

@ -5769,9 +5769,7 @@ def get_optional_params(
extra_body # openai client supports `extra_body` param
)
else: # assume passing in params for openai/azure openai
print_verbose(
f"UNMAPPED PROVIDER, ASSUMING IT'S OPENAI/AZURE - model={model}, custom_llm_provider={custom_llm_provider}"
)
supported_params = get_supported_openai_params(
model=model, custom_llm_provider="openai"
)