Skip to content

Commit

Permalink
Alwrity - Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AJaySi committed Apr 12, 2024
1 parent 44c50e9 commit b34e51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gpt_providers/text_generation/main_text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def check_gpt_provider(gpt_provider):
ValueError: If both the specified GPT provider and environment variable GPT_PROVIDER are missing.
"""
env_gpt_provider = os.getenv('GPT_PROVIDER')
if gpt_provider and if gpt_provider != env_gpt_provider:
if gpt_provider and gpt_provider != env_gpt_provider:
logger.warning(f"Config: '{gpt_provider}' different to environment variable 'GPT_PROVIDER' '{env_gpt_provider}'")
logger.info(f"Using Environment GPT provider: {env_gpt_provider}")
gpt_provider = env_gpt_provider
Expand Down

0 comments on commit b34e51c

Please sign in to comment.