diff --git a/lib/gpt_providers/text_generation/main_text_generation.py b/lib/gpt_providers/text_generation/main_text_generation.py index 8dce950..7cf1647 100644 --- a/lib/gpt_providers/text_generation/main_text_generation.py +++ b/lib/gpt_providers/text_generation/main_text_generation.py @@ -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