Skip to content

Commit

Permalink
Fix list_azure_openai_models bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bigadsoleiman authored Mar 18, 2024
1 parent b0cda91 commit f4916cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/layers/python-sdk/python/genai_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list_openai_models():

def list_azure_openai_models():
# azure openai model are listed, comma separated in AZURE_OPENAI_MODELS variable in external API secret
models = genai_core.parameters.get_external_api_key("AZURE_OPENAI_MODELS")
models = genai_core.parameters.get_external_api_key("AZURE_OPENAI_MODELS") or ""

return [
{
Expand Down

0 comments on commit f4916cd

Please sign in to comment.