From a9e47ce0da62e11e66857a39f2f8e1310da3ec2e Mon Sep 17 00:00:00 2001 From: xunbu Date: Mon, 3 Nov 2025 16:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docutranslate/agents/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docutranslate/agents/agent.py b/docutranslate/agents/agent.py index f000850..7143415 100644 --- a/docutranslate/agents/agent.py +++ b/docutranslate/agents/agent.py @@ -141,7 +141,7 @@ def extract_token_info(response_data: dict) -> tuple[int, int, int, int]: reasoning_tokens = usage["completion_tokens_details"]["reasoning_tokens"] return input_tokens, cached_tokens, output_tokens, reasoning_tokens except TypeError as e: - print(f"获取token发生错误:{e.__repr__()}") + # print(f"获取token失败,跳过token计数:{e.__repr__()}") return -1, -1, -1, -1