feat(log):add_request_and_response_log (#3391)

* feat(log):add_request_and_response_log

* [ci] Retrigger

* [ci] Retrigger
This commit is contained in:
xiaolei373
2025-08-14 19:12:42 +08:00
committed by GitHub
parent 1f5983290c
commit f0519aec67
3 changed files with 27 additions and 3 deletions

View File

@@ -197,6 +197,7 @@ async def create_chat_completion(request: ChatCompletionRequest):
"""
Create a chat completion for the provided prompt and parameters.
"""
api_server_logger.info(f"Chat Received request: {request.model_dump_json()}")
if app.state.dynamic_load_weight:
status, msg = app.state.engine_client.is_workers_alive()
if not status:
@@ -218,6 +219,7 @@ async def create_completion(request: CompletionRequest):
"""
Create a completion for the provided prompt and parameters.
"""
api_server_logger.info(f"Completion Received request: {request.model_dump_json()}")
if app.state.dynamic_load_weight:
status, msg = app.state.engine_client.is_workers_alive()
if not status: