diff --git a/common/chat.cpp b/common/chat.cpp index 5b93c58873c..bb4a5de3efd 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -1732,17 +1732,7 @@ struct gemma4_model_turn_builder { void collect_result(const json & curr) { json response; if (curr.contains("content")) { - const auto & content = curr.at("content"); - if (content.is_string()) { - // Try to parse the content as JSON; fall back to raw string - try { - response = json::parse(content.get()); - } catch (...) { - response = content; - } - } else { - response = content; - } + response = curr.at("content"); } std::string name;