Update chat-parser.cpp

This commit is contained in:
Sheldon Robinson 2025-12-04 19:17:53 -05:00 committed by GitHub
parent f08a068206
commit a2853260ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1399,7 +1399,7 @@ static void common_chat_parse_content_only(common_chat_msg_parser & builder) {
builder.add_content(builder.consume_rest());
}
static void common_chat_parse(common_chat_msg_parser & builder) {
static void common_chat_msg_parse(common_chat_msg_parser & builder) {
LOG_DBG("Parsing input with format %s: %s\n", common_chat_format_name(builder.syntax().format), builder.input().c_str());
switch (builder.syntax().format) {
@ -1492,7 +1492,7 @@ common_chat_msg common_chat_parse(const std::string & input, bool is_partial, co
}
common_chat_msg_parser builder(input, is_partial, syntax);
try {
common_chat_parse(builder);
common_chat_msg_parse(builder);
} catch (const common_chat_msg_partial_exception & ex) {
LOG_DBG("Partial parse: %s\n", ex.what());
if (!is_partial) {