Skip to content

Commit

Permalink
Fix messed-up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kfet committed Nov 19, 2024
1 parent d6edcba commit e9029e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def get_key(
if explicit_key:
# User specified a key that's not an alias, use that
return explicit_key
# Finally try environment variable
# Environment variable overrides stored key
if env_var and os.environ.get(env_var):
return os.environ[env_var]
# Stored key over-rides environment variables over-ride the default key
# Finally try stored key
if key_alias in stored_keys:
return stored_keys[key_alias]
# Couldn't find it
Expand Down

0 comments on commit e9029e7

Please sign in to comment.