Skip to content

Commit

Permalink
fix picking wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
wunderwuzzi23 committed Jun 30, 2024
1 parent 3819abd commit 962948f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_model_client(config):
api_key=open(os.path.join(home_path,".openai.apikey"), "r").readline().strip()
api_key = api_key

return OpenAIModel(api_key=os.environ.get("OPENAI_API_KEY"))
return OpenAIModel(api_key=api_key)

elif api_provider == "azure":
api_key = os.getenv("AZURE_OPENAI_API_KEY")
Expand Down

0 comments on commit 962948f

Please sign in to comment.