mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-13 22:04:58 +08:00
fix security issue of logging llm output (#18980)
Signed-off-by: Lu Fang <fanglu@fb.com> Co-authored-by: Lucia (Lu) Fang <fanglu@meta.com>
This commit is contained in:
parent
ba5111f237
commit
b8b904795d
@ -68,8 +68,8 @@ class Phi4MiniJsonToolParser(ToolParser):
|
|||||||
len(function_call_arr))
|
len(function_call_arr))
|
||||||
except json.JSONDecodeError as e:
|
except json.JSONDecodeError as e:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Failed to parse function calls from model output: %s. "
|
"Failed to parse function calls from model output. "
|
||||||
"Error: %s", model_output, str(e))
|
"Error: %s", str(e))
|
||||||
|
|
||||||
tool_calls: list[ToolCall] = [
|
tool_calls: list[ToolCall] = [
|
||||||
ToolCall(
|
ToolCall(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user