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): ...@@ -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(
......
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