diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 1dbf50935..d6589e0ab 100644 --- a/rag/llm/chat_model.py +++ b/rag/llm/chat_model.py @@ -68,7 +68,6 @@ def chat_streamly(self, system, history, gen_conf): resp.choices[0].delta.content = "" ans += resp.choices[0].delta.content - total_tokens += 1 if not hasattr(resp, "usage") or not resp.usage: total_tokens = ( total_tokens