mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-28 20:25:20 +00:00
text is stored in content_parts
This commit is contained in:
@ -779,9 +779,9 @@ static json oaicompat_chat_params_parse(
|
|||||||
|
|
||||||
/* Append assistant prefilled message */
|
/* Append assistant prefilled message */
|
||||||
if (prefill_assistant_message) {
|
if (prefill_assistant_message) {
|
||||||
if (last_message.content.is_array()) {
|
if (!last_message.content_parts.empty()) {
|
||||||
for (auto & p : last_message.content) {
|
for (auto & p : last_message.content_parts) {
|
||||||
chat_params.prompt += p["text"];
|
chat_params.prompt += p.text;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
chat_params.prompt += last_message.content;
|
chat_params.prompt += last_message.content;
|
||||||
|
Reference in New Issue
Block a user