移除调试日志打印代码

This commit is contained in:
yangdx
2025-01-15 23:11:15 +08:00
parent 9632a8f0dc
commit ea22d62c25

View File

@@ -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:
# 获取所有消息内容