2024-01-25 21:46:20 +00:00
|
|
|
diff --git a/examples/server/server.cpp b/examples/server/server.cpp
|
2024-03-08 08:26:20 +00:00
|
|
|
index f255ad76..914ecfdd 100644
|
2024-01-25 21:46:20 +00:00
|
|
|
--- a/examples/server/server.cpp
|
|
|
|
+++ b/examples/server/server.cpp
|
2024-03-08 08:26:20 +00:00
|
|
|
@@ -1101,12 +1101,13 @@ struct server_context {
|
2024-02-12 16:10:16 +00:00
|
|
|
// add the token to slot queue and cache
|
|
|
|
}
|
2024-03-08 08:26:20 +00:00
|
|
|
|
2024-02-12 16:10:16 +00:00
|
|
|
- slot.add_token_string(result);
|
2024-03-08 08:26:20 +00:00
|
|
|
if (slot.params.stream) {
|
2024-02-12 16:10:16 +00:00
|
|
|
send_partial_response(slot, result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ slot.add_token_string(result);
|
2024-01-25 21:46:20 +00:00
|
|
|
+
|
2024-03-08 08:26:20 +00:00
|
|
|
if (incomplete) {
|
2024-02-12 16:10:16 +00:00
|
|
|
slot.has_next_token = true;
|
2024-03-08 08:26:20 +00:00
|
|
|
}
|