8000 server: fix remove 'image_url'/'input_audio' json-object effectlly fo… · ggml-org/llama.cpp@c962ae3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c962ae3

Browse files
server: fix remove 'image_url'/'input_audio' json-object effectlly for 'llama_params' in multimodal-model-mode (#13853)
[fix]: remove 'image_url'/'input_audio' effectlly for 'llama_params' in multimodal-model-mode
1 parent a3938fb commit c962ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/server/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ struct oaicompat_parser_options {
573573

574574
// used by /chat/completions endpoint
575575
static json oaicompat_chat_params_parse(
576-
const json & body, /* openai api json semantics */
576+
json & body, /* openai api json semantics */
577577
const oaicompat_parser_options & opt,
578578
std::vector<raw_buffer> & out_files)
579579
{
@@ -624,7 +624,7 @@ static json oaicompat_chat_params_parse(
624624
if (!body.contains("messages")) {
625625
throw std::runtime_error("'messages' is required");
626626
}
627-
json messages = body.at("messages");
627+
json & messages = body.at("messages");
628628
if (!messages.is_array()) {
629629
throw std::runtime_error("Expected 'messages' to be an array");
630630
}

0 commit comments

Comments
 (0)
0