From ea22d62c25cd086c83b16b9b5343e3cc260defec Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 15 Jan 2025 23:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=B0=83=E8=AF=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=89=93=E5=8D=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/api/lightrag_ollama.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightrag/api/lightrag_ollama.py b/lightrag/api/lightrag_ollama.py index 5768fc42..22f2e017 100644 --- a/lightrag/api/lightrag_ollama.py +++ b/lightrag/api/lightrag_ollama.py @@ -674,9 +674,9 @@ def create_app(args): @app.post("/api/chat") async def chat(raw_request: Request, request: OllamaChatRequest): - # 打印原始请求数据 - body = await raw_request.body() - logging.info(f"收到 /api/chat 原始请求: {body.decode('utf-8')}") + # # 打印原始请求数据 + # body = await raw_request.body() + # logging.info(f"收到 /api/chat 原始请求: {body.decode('utf-8')}") """Handle chat completion requests""" try: # 获取所有消息内容