Unverified Commit b8b90479 authored by Lucia Fang's avatar Lucia Fang Committed by GitHub
Browse files

fix security issue of logging llm output (#18980)


Signed-off-by: default avatarLu Fang <fanglu@fb.com>
Co-authored-by: default avatarLucia (Lu) Fang <fanglu@meta.com>
parent ba5111f2
......@@ -68,8 +68,8 @@ class Phi4MiniJsonToolParser(ToolParser):
len(function_call_arr))
except json.JSONDecodeError as e:
logger.error(
"Failed to parse function calls from model output: %s. "
"Error: %s", model_output, str(e))
"Failed to parse function calls from model output. "
"Error: %s", str(e))
tool_calls: list[ToolCall] = [
ToolCall(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment