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

Function kv_cache_try_load

ds4_server.c:8835–8844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8833 st->sent_thinking = true;
8834 }
8835 if (!anthropic_sse_close_block_live(fd, id, st)) return false;
8836 st->emit_pos = limit + strlen("</think>");
8837 st->guard_second_reasoning = false;
8838 } else if (!tool && !final) {
8839 return true;
8840 } else {
8841 st->guard_second_reasoning = false;
8842 }
8843 }
8844
8845 const char *tool = r->has_tools ? find_any_tool_start(raw + st->emit_pos) : NULL;
8846 size_t limit = text_stream_safe_limit(raw, st->emit_pos, raw_len,
8847 r->has_tools, final);

Callers 1

generate_jobFunction · 0.85

Calls 1

kv_cache_try_load_textFunction · 0.85

Tested by

no test coverage detected