| 4819 | * and an empty answer is already unmistakably not an answer. */ |
| 4820 | static void ds4_local_unterminated_reasoning(const char *text, |
| 4821 | char **content_out, |
| 4822 | char **reasoning_out) { |
| 4823 | const char *body = text ? text : ""; |
| 4824 | if (!strncmp(body, "<think>", 7)) body += 7; |
| 4825 | *reasoning_out = xstrdup(body); |
| 4826 | *content_out = xstrdup(""); |
| 4827 | } |
| 4828 | |
| 4829 | static void ds4_unterminated_reasoning_before_tool(const char *text, |
| 4830 | size_t prefix_len, |
| 4831 | char **content_out, |
| 4832 | char **reasoning_out) { |
no test coverage detected