Skip to content

Commit

Permalink
Add return on genesis cli if api key is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Feb 14, 2024
1 parent 427cf21 commit 93a5222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agency_swarm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def main():
if not os.getenv('OPENAI_API_KEY') and not args.openai_key:
print("OpenAI API key not set. "
"Please set it with --openai_key argument or by setting OPENAI_API_KEY environment variable.")
return

if args.openai_key:
from agency_swarm import set_openai_key
Expand Down

0 comments on commit 93a5222

Please sign in to comment.