mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-29 11:12:02 +01:00
Allow removal of max_output_tokens by setting GEN_AI_MAX_OUTPUT_TOKENS=0 (#1958)
Co-authored-by: Emerson Gomes <emerson.gomes@thalesgroup.com>
This commit is contained in:
parent
d839595330
commit
6c32821ad4
@ -266,7 +266,7 @@ class DefaultMultiLLM(LLM):
|
||||
stream=stream,
|
||||
# model params
|
||||
temperature=self._temperature,
|
||||
max_tokens=self._max_output_tokens,
|
||||
max_tokens=self._max_output_tokens if self._max_output_tokens > 0 else None,
|
||||
timeout=self._timeout,
|
||||
**self._model_kwargs,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user