Skip to content

Commit

Permalink
Removed testing fprintf calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwombat committed May 30, 2023
1 parent 3292f05 commit 38eaf2b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ int main(int argc, char **argv)
llama.beginCompletion();
if(llama.streaming)
{
fprintf(stdout, "In streaming\n");
res.set_chunked_content_provider("text/event-stream", [&](size_t /*offset*/,
DataSink& sink) {
std::string final_text = "";
Expand All @@ -729,7 +728,6 @@ int main(int argc, char **argv)
std::string result = llama.doCompletion();
json data;
final_text += result;
fprintf(stdout, "Result: %s\n", result);
if (llama.has_next_token)
{
data = { {"content", result}, {"stop", false} };
Expand Down

0 comments on commit 38eaf2b

Please # to comment.