From 70dcffbb7ab2df24d6245c826a5f4d16d55a5f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Mon, 27 Oct 2025 22:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=20tool=5Fcall=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi_app.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fastapi_app.py b/fastapi_app.py index 2c11b42..f109eb1 100644 --- a/fastapi_app.py +++ b/fastapi_app.py @@ -71,18 +71,20 @@ def get_content_from_messages(messages: List[dict], tool_response: bool = True) # 匹配并替换不完整的 tool_call 模式 content_text = re.sub(r'