Skip to content

Commit

Permalink
rm thoughts from generic parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Feb 9, 2025
1 parent b829cab commit 95cddfd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ static common_chat_msg common_chat_parse_generic(const std::string & input) {
json data = json::parse(input);
common_chat_msg result;
result.role = "assistant";
if (data.contains("thoughts")) {
result.reasoning_content = data["thoughts"];
}
if (data.contains("tool_calls")) {
for (const auto & tool_call : data["tool_calls"]) {
result.tool_calls.push_back({
Expand Down

0 comments on commit 95cddfd

Please sign in to comment.