From b928e8f89e9010b4d77cd973e70142102a0b4502 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Sat, 11 Jan 2025 12:04:38 +0100 Subject: [PATCH] [GPT] make secret key optional with custom url --- Services/Services_bases/gpt_service/gpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Services_bases/gpt_service/gpt.py b/Services/Services_bases/gpt_service/gpt.py index 3627615d1..d96665c4b 100644 --- a/Services/Services_bases/gpt_service/gpt.py +++ b/Services/Services_bases/gpt_service/gpt.py @@ -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]