Skip to content

Commit

Permalink
优化日志记录,添加请求详细信息输出
Browse files Browse the repository at this point in the history
  • Loading branch information
snailyp committed Dec 15, 2024
1 parent 626ccef commit 16c9bb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async def chat_completion(
token: str = Depends(security_service.verify_authorization),
):
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()
logger.info(f"Using API key: {api_key}")
retries = 0
Expand Down

0 comments on commit 16c9bb2

Please sign in to comment.