MCPcopy Create free account
hub / github.com/antirez/ds4 / http_error

Function http_error

ds4_server.c:4821–4829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4819 * and an empty answer is already unmistakably not an answer. */
4820static 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
4829static void ds4_unterminated_reasoning_before_tool(const char *text,
4830 size_t prefix_len,
4831 char **content_out,
4832 char **reasoning_out) {

Callers 3

generate_jobFunction · 0.85
client_mainFunction · 0.85

Calls 4

buf_putsFunction · 0.85
json_escapeFunction · 0.85
http_responseFunction · 0.85
buf_freeFunction · 0.70

Tested by

no test coverage detected