MCPcopy Index your code
hub / github.com/appdevforall/CodeOnTheGo / push_back

Method push_back

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

Source from the content-addressed store, hash-verified

275}
276
277void server_tokens::push_back(llama_token tok) {
278 if (tok == LLAMA_TOKEN_NULL) {
279 throw std::runtime_error("Invalid token");
280 }
281 tokens.emplace_back(tok);
282}
283
284void server_tokens::push_back(const mtmd_input_chunk * chunk) {
285 auto type = mtmd_input_chunk_get_type(chunk);

Callers 15

mainFunction · 0.45
save_tensor_for_layerMethod · 0.45
calc_diffMethod · 0.45
filter_nonzero_rowsMethod · 0.45
train_contextMethod · 0.45
build_v_diffMethod · 0.45
padding_seqMethod · 0.45
ctrlvec_load_prompt_fileFunction · 0.45
mainFunction · 0.45
lora_merge_ctxMethod · 0.45
run_mergeMethod · 0.45
load_mediaMethod · 0.45

Calls 8

mtmd_input_chunk_copyFunction · 0.85
sizeMethod · 0.65
getMethod · 0.65
beginMethod · 0.45
endMethod · 0.45

Tested by 15

simple_assist_msgFunction · 0.36
init_deltaFunction · 0.36
test_peg_parserFunction · 0.36
decodeMethod · 0.36
test_backend_max_outputsFunction · 0.36
collect_tests_to_runFunction · 0.36
run_multipleFunction · 0.36