add back the [img-id]
This commit is contained in:
parent
5db4c71a16
commit
a98a166d12
1 changed files with 1 additions and 0 deletions
|
@ -1369,6 +1369,7 @@ struct llama_server_context
|
||||||
|
|
||||||
// rebuild the prompt since it was cleared earlier
|
// rebuild the prompt since it was cleared earlier
|
||||||
prompt += img.prefix_prompt;
|
prompt += img.prefix_prompt;
|
||||||
|
prompt += "[img-" + std::to_string(img.id) + "]";
|
||||||
prompt += json_prompt;
|
prompt += json_prompt;
|
||||||
|
|
||||||
std::vector<llama_token> append_tokens = tokenize(json_prompt, false); // has next image
|
std::vector<llama_token> append_tokens = tokenize(json_prompt, false); // has next image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue