MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / str

Method str

tools/server/server-common.cpp:319–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319std::string server_tokens::str() const {
320 std::ostringstream oss;
321 oss << "tokens: ";
322 for (size_t idx = 0; idx < tokens.size(); ++idx) {
323 llama_token t = tokens[idx];
324 oss << "idx:" << idx << " ";
325 if (t == LLAMA_TOKEN_NULL) {
326 oss << "<embd> ";
327 } else {
328 oss << t << " ";
329 }
330 }
331 oss << "\n";
332 oss << "image idx: ";
333 for (const auto & it : map_idx_to_media) {
334 oss << it.first << ", ";
335 }
336 return oss.str();
337}
338
339const mtmd::input_chunk_ptr & server_tokens::find_chunk(size_t idx) const {
340 auto it = map_idx_to_media.find(idx);

Callers 15

mainFunction · 0.45
to_stringFunction · 0.45
read_fileFunction · 0.45
read_fileFunction · 0.45
gguf_kv_to_strFunction · 0.45
joinFunction · 0.45
parse_int_rangeFunction · 0.45
set_xterm256_foregroundFunction · 0.45
audio_data_from_speakerFunction · 0.45
mainFunction · 0.45
update_slotsMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 10

assert_equalsFunction · 0.36
run_singleFunction · 0.36
load_seed_oss_templateFunction · 0.36
load_templateFunction · 0.36
test_regexFunction · 0.36
mainFunction · 0.36
generate_snapshotFunction · 0.36
readFunction · 0.36
var_to_strFunction · 0.36
hex_dumpFunction · 0.36