From 2dcd026e9fd99be685e57d8533a82817d3621fd6 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Fri, 25 Aug 2023 11:19:00 +0800 Subject: [PATCH] logs: add baidu reply log --- bot/baidu/baidu_wenxin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/baidu/baidu_wenxin.py b/bot/baidu/baidu_wenxin.py index 589e249..315459e 100644 --- a/bot/baidu/baidu_wenxin.py +++ b/bot/baidu/baidu_wenxin.py @@ -77,6 +77,7 @@ class BaiduWenxinBot(Bot): payload = {'messages': session.messages} response = requests.request("POST", url, headers=headers, data=json.dumps(payload)) response_text = json.loads(response.text) + logger.info(f"[BAIDU] response text={response_text}") res_content = response_text["result"] total_tokens = response_text["usage"]["total_tokens"] completion_tokens = response_text["usage"]["completion_tokens"]