Skip to content

Commit 224101b

Browse files
author
ochafik
committed
chat-parser: remove input from exception (llm output may contain PII)
1 parent 6946a83 commit 224101b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/chat-parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool common_chat_msg_parser::add_tool_calls(const json & arr) {
6868
}
6969
void common_chat_msg_parser::finish() {
7070
if (!is_partial_ && pos_ != input_.size()) {
71-
throw std::runtime_error("Unexpected content at end of input: " + input_.substr(pos_));
71+
throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_));
7272
}
7373
}
7474

0 commit comments

Comments
 (0)