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

Function prompt_init

subprojects/llama.cpp/tools/tts/tts.cpp:433–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433static void prompt_init(llama_tokens & prompt, const llama_vocab * vocab) {
434 prompt.clear();
435
436 prompt_add(prompt, vocab, "<|im_start|>\n", true, true);
437}
438
439static std::vector<llama_token> prepare_guide_tokens(const llama_vocab * vocab, const std::string & str, const outetts_version tts_version = OUTETTS_V0_2) {
440 const std::string& delimiter = (tts_version == OUTETTS_V0_3 ? "<|space|>" : "<|text_sep|>");

Callers 1

mainFunction · 0.85

Calls 2

prompt_addFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected