mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-27 12:05:03 +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 */
|
||||
if (prefill_assistant_message) {
|
||||
if (last_message.content.is_array()) {
|
||||
for (auto & p : last_message.content) {
|
||||
chat_params.prompt += p["text"];
|
||||
if (!last_message.content_parts.empty()) {
|
||||
for (auto & p : last_message.content_parts) {
|
||||
chat_params.prompt += p.text;
|
||||
}
|
||||
} else {
|
||||
chat_params.prompt += last_message.content;
|
||||
|
Reference in New Issue
Block a user