Skip to content

Commit

Permalink
Add check for missing environment variable AICI_API_BASE
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Feb 2, 2024
1 parent f09a86b commit 09da6d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyaici/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ def main_inner():
runner_from_cli(args).bench()
return

if os.environ.get(rest.BASE_URL_ENV, None) is None:
cli_error(f"environment variable {rest.BASE_URL_ENV} not set")

if args.all_prefixes:
prefixes = rest.detect_prefixes()
if len(prefixes) <= 1:
Expand Down

0 comments on commit 09da6d2

Please sign in to comment.