MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / str

Method str

subprojects/llama.cpp/tools/server/server-common.cpp:249–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249std::string server_tokens::str() const {
250 std::ostringstream oss;
251 oss << "tokens: ";
252 for (size_t idx = 0; idx < tokens.size(); ++idx) {
253 llama_token t = tokens[idx];
254 oss << "idx:" << idx << " ";
255 if (t == LLAMA_TOKEN_NULL) {
256 oss << "<embd> ";
257 } else {
258 oss << t << " ";
259 }
260 }
261 oss << "\n";
262 oss << "image idx: ";
263 for (const auto & it : map_idx_to_media) {
264 oss << it.first << ", ";
265 }
266 return oss.str();
267}
268
269const mtmd::input_chunk_ptr & server_tokens::find_chunk(size_t idx) const {
270 auto it = map_idx_to_media.find(idx);

Callers 15

mainFunction · 0.45
to_stringFunction · 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
init_routesMethod · 0.45
convert_anthropic_to_oaiFunction · 0.45

Calls 1

sizeMethod · 0.65

Tested by 7

test_regexFunction · 0.36
run_singleFunction · 0.36
test_regexFunction · 0.36
mainFunction · 0.36
readFunction · 0.36
hex_dumpFunction · 0.36