新增日志分隔符,优化chat_completion接口日志输出结构

This commit is contained in:
yinpeng
2024-12-16 16:42:36 +08:00
parent 00967bde4d
commit ff72cd0b36

View File

@@ -41,6 +41,7 @@ async def chat_completion(
authorization: str = Header(None),
token: str = Depends(security_service.verify_authorization),
):
logger.info("-" * 50)
logger.info(f"Handling chat completion request for model: {request.model}")
logger.info(f"Request: \n{request.model_dump_json(indent=2)}")
api_key = await key_manager.get_next_working_key()