diff --git a/agency_swarm/cli.py b/agency_swarm/cli.py index b48c09f1..4905ad37 100644 --- a/agency_swarm/cli.py +++ b/agency_swarm/cli.py @@ -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