MCPcopy
hub / github.com/ModelTC/LightLLM / _log_req_header

Method _log_req_header

lightllm/server/httpserver/manager.py:373–384  ·  view source on GitHub ↗
(self, request_headers, group_request_id: int)

Source from the content-addressed store, hash-verified

371 return image_tokens, audio_tokens
372
373 async def _log_req_header(self, request_headers, group_request_id: int):
374
375 x_request_id = request_headers.get("X-Request-Id", "")
376 x_session_id = request_headers.get("X-Session-Id", "")
377
378 format_in_time = datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")
379 logger.info(
380 f"recieved req X-Request-Id:{x_request_id} "
381 f"X-Session-Id:{x_session_id} start_time:{format_in_time} "
382 f"lightllm_req_id:{group_request_id} "
383 )
384 return
385
386 async def _encode(
387 self, prompt: Union[str, List[int]], multimodal_params: MultimodalParams, sampling_params: SamplingParams

Callers 1

generateMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected