소스 검색

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
tags/v0.20.0
Liu An 3 달 전
부모
커밋
9e45fcfdb3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
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)


Loading…
취소
저장