Преглед изворни кода

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 Прегледај датотеку

return ans + LENGTH_NOTIFICATION_EN return ans + LENGTH_NOTIFICATION_EN


def _exceptions(self, e, attempt): def _exceptions(self, e, attempt):
logging.exception("OpenAI cat_with_tools")
logging.exception("OpenAI chat_with_tools")
# Classify the error # Classify the error
error_code = self._classify_error(e) error_code = self._classify_error(e)



Loading…
Откажи
Сачувај