should exit if API key isn't defined (#259)

* should exit if open-router and no api key
This commit is contained in:
vncntt 2025-03-04 00:45:36 -08:00 committed by GitHub
parent e3b7365f50
commit 478646622e

View file

@ -500,7 +500,7 @@ async def main_async():
print("Warning: OPENROUTER_API_KEY environment variable is not set")
print("Please set it using: export OPENROUTER_API_KEY=your-api-key")
print("Or provide it directly with --api-key")
print("Continuing without API key...")
return 1
# Load configuration
config_path = args.config