We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351d238 commit 850f24fCopy full SHA for 850f24f
processors/providers/promptly/text_chat.py
@@ -238,8 +238,9 @@ def process(self) -> dict:
238
temperature=self._config.temperature,
239
stream=True,
240
)
241
- elif self._env['localai_api_key'] and self._env['localai_base_url'] and self._config.use_localai_if_available:
242
- openai.api_key = self._env['localai_api_key']
+ elif self._env['localai_base_url'] and self._config.use_localai_if_available:
+ if self._env['localai_api_key']:
243
+ openai.api_key = self._env['localai_api_key']
244
openai.api_base = self._env['localai_base_url']
245
model = self._config.dict().get('model', 'gpt-3.5-turbo')
246
0 commit comments