From 9e45fcfdb30273edcc904570bd0f3acca06d90e0 Mon Sep 17 00:00:00 2001 From: Liu An Date: Wed, 16 Jul 2025 13:47:38 +0800 Subject: [PATCH] Fix: fix typo in OpenAI error logging message (#8865) ### What problem does this PR solve? Correct the logging message from "OpenAI cat_with_tools" to "OpenAI chat_with_tools" in the `_exceptions` method of the `Base` class to accurately reflect the method name and improve error traceability. ### Type of change - [x] Typo --- rag/llm/chat_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 3ffe03af2..068871ef0 100644 --- a/rag/llm/chat_model.py +++ b/rag/llm/chat_model.py @@ -124,7 +124,7 @@ class Base(ABC): return ans + LENGTH_NOTIFICATION_EN def _exceptions(self, e, attempt): - logging.exception("OpenAI cat_with_tools") + logging.exception("OpenAI chat_with_tools") # Classify the error error_code = self._classify_error(e)