Skip to content

Commit 847d27c

Browse files
authored
Update chat.cpp
1 parent 2476e13 commit 847d27c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

common/chat.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,11 +2212,6 @@ static void common_chat_parse_glm_4_5(common_chat_msg_parser & builder) {
22122212
// Test if arg_val is a partial JSON
22132213
std::optional<common_json> value_json = std::nullopt;
22142214
try { value_json = builder.try_consume_json(); }
2215-
catch (const common_chat_msg_partial_exception &partial) {
2216-
gen_partial_args([&](auto &&, auto &&needle){arguments[key] = needle;});
2217-
throw;
2218-
}
2219-
catch (const json::exception&) { builder.move_to(val_start); }
22202215
catch (const std::runtime_error&) { builder.move_to(val_start); }
22212216

22222217
// If it is a JSON and followed by </arg_value>, parse as json

0 commit comments

Comments
 (0)