refactor format
This commit is contained in:
parent
a90b398b2f
commit
eb42fb79da
1 changed files with 10 additions and 13 deletions
|
@ -912,7 +912,6 @@ struct server_context {
|
|||
|
||||
// get prompt
|
||||
if (!task.infill) {
|
||||
{
|
||||
const auto & prompt = data.find("prompt");
|
||||
if (prompt == data.end()) {
|
||||
send_error(task, "Either \"prompt\" or \"messages\" must be provided", ERROR_TYPE_INVALID_REQUEST);
|
||||
|
@ -925,8 +924,6 @@ struct server_context {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// penalize user-provided tokens
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue