We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbbbd7 commit f246163Copy full SHA for f246163
examples/server/server.cpp
@@ -975,6 +975,8 @@ struct server_context {
975
(prompt->is_array() && prompt->size() == 1 && prompt->at(0).is_string()) ||
976
(prompt->is_array() && !prompt->empty() && prompt->at(0).is_number_integer())) {
977
slot.prompt = *prompt;
978
+ } else if (prompt->is_array() && prompt->size() == 1 && prompt->at(0).is_array()) {
979
+ slot.prompt = prompt->at(0);
980
} else {
981
send_error(task, "\"prompt\" must be a string or an array of integers", ERROR_TYPE_INVALID_REQUEST);
982
return false;
0 commit comments