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

Function common_reasoning_format_name

smallthinker/common/chat.cpp:597–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597const char * common_reasoning_format_name(common_reasoning_format format) {
598 switch (format) {
599 case COMMON_REASONING_FORMAT_NONE: return "none";
600 case COMMON_REASONING_FORMAT_DEEPSEEK: return "deepseek";
601 case COMMON_REASONING_FORMAT_DEEPSEEK_LEGACY: return "deepseek-legacy";
602 default:
603 throw std::runtime_error("Unknown reasoning format");
604 }
605}
606
607static std::string wrap_code_as_arguments(common_chat_msg_parser & builder, const std::string & code) {
608 std::string arguments;

Callers 1

to_jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected