diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 3e96f75f4..fbef34781 100644 --- a/rag/llm/chat_model.py +++ b/rag/llm/chat_model.py @@ -1217,7 +1217,7 @@ class GeminiChat(Base): def _clean_conf(self, gen_conf): for k in list(gen_conf.keys()): - if k not in ["temperature", "top_p", "max_tokens"]: + if k not in ["temperature", "top_p"]: del gen_conf[k] return gen_conf