Skip to content

Commit

Permalink
[GPT] make secret key optional with custom url
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Jan 11, 2025
1 parent 297f4ff commit f280bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Services_bases/gpt_service/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _update_token_usage(self, consumed_tokens):
self.logger.debug(f"Consumed {consumed_tokens} tokens. {self.consumed_daily_tokens} consumed tokens today.")

def check_required_config(self, config):
if self._env_secret_key is not None or self.use_stored_signals_only():
if self._env_secret_key is not None or self.use_stored_signals_only() or self._get_base_url():
return True
try:
config_key = config[services_constants.CONIG_OPENAI_SECRET_KEY]
Expand Down

0 comments on commit f280bb4

Please sign in to comment.