refactor format

This commit is contained in:
woodx9 2024-06-03 22:30:41 +08:00
parent a90b398b2f
commit eb42fb79da

View file

@ -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
{