移除调试日志打印代码
This commit is contained in:
@@ -674,9 +674,9 @@ def create_app(args):
|
|||||||
|
|
||||||
@app.post("/api/chat")
|
@app.post("/api/chat")
|
||||||
async def chat(raw_request: Request, request: OllamaChatRequest):
|
async def chat(raw_request: Request, request: OllamaChatRequest):
|
||||||
# 打印原始请求数据
|
# # 打印原始请求数据
|
||||||
body = await raw_request.body()
|
# body = await raw_request.body()
|
||||||
logging.info(f"收到 /api/chat 原始请求: {body.decode('utf-8')}")
|
# logging.info(f"收到 /api/chat 原始请求: {body.decode('utf-8')}")
|
||||||
"""Handle chat completion requests"""
|
"""Handle chat completion requests"""
|
||||||
try:
|
try:
|
||||||
# 获取所有消息内容
|
# 获取所有消息内容
|
||||||
|
Reference in New Issue
Block a user