MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / consume_literal

Method consume_literal

smallthinker/common/chat-parser.cpp:124–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void common_chat_msg_parser::consume_literal(const std::string & literal) {
125 if (!try_consume_literal(literal)) {
126 throw common_chat_msg_partial_exception(literal);
127 }
128}
129
130bool common_chat_msg_parser::try_parse_reasoning(const std::string & start_think, const std::string & end_think) {
131 auto handle_reasoning = [&](const std::string & reasoning, bool closed) {

Callers 2

Tested by

no test coverage detected