Removed testing fprintf calls.

This commit is contained in:
digiwombat 2023-05-30 19:48:43 -04:00
parent 3292f057dc
commit 38eaf2b7f7

View file

@ -720,7 +720,6 @@ int main(int argc, char **argv)
llama.beginCompletion(); llama.beginCompletion();
if(llama.streaming) if(llama.streaming)
{ {
fprintf(stdout, "In streaming\n");
res.set_chunked_content_provider("text/event-stream", [&](size_t /*offset*/, res.set_chunked_content_provider("text/event-stream", [&](size_t /*offset*/,
DataSink& sink) { DataSink& sink) {
std::string final_text = ""; std::string final_text = "";
@ -729,7 +728,6 @@ int main(int argc, char **argv)
std::string result = llama.doCompletion(); std::string result = llama.doCompletion();
json data; json data;
final_text += result; final_text += result;
fprintf(stdout, "Result: %s\n", result);
if (llama.has_next_token) if (llama.has_next_token)
{ {
data = { {"content", result}, {"stop", false} }; data = { {"content", result}, {"stop", false} };