Skip to content

Commit

Permalink
More informative warning message when API key is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
OtaconBYF committed Nov 28, 2024
1 parent b0a06c0 commit e3dbcb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/quivr_core/rag/entities/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def set_api_key(self, force_reset: bool = False):

if not self.llm_api_key:
logger.warning(f"The API key for supplier '{self.supplier}' is not set. ")
logger.warning(f"Please set the environment variable: '{self.env_variable_name}'. ")

def set_llm_model_config(self):
# Automatically set context_length and tokenizer_hub based on the supplier and model
Expand Down

0 comments on commit e3dbcb7

Please sign in to comment.