Update examples/server/server.cpp

This commit is contained in:
Georgi Gerganov 2024-03-09 13:16:28 +02:00 committed by GitHub
parent 46132b81f3
commit f2118a0e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -856,12 +856,9 @@ struct server_context {
// get prompt
{
const auto & prompt = data.find("prompt");
if (prompt == data.end())
{
if (prompt == data.end()) {
slot.prompt = "";
}
else
{
} else {
slot.prompt = *prompt;
}
}