From 8a4de7df44ef2650e7de9bb6211940741d14248a Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 23 Sep 2023 18:01:12 -0600 Subject: [PATCH] oops --- llm_server/routes/v1/generate_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm_server/routes/v1/generate_stream.py b/llm_server/routes/v1/generate_stream.py index 3f3c42d..6b96d99 100644 --- a/llm_server/routes/v1/generate_stream.py +++ b/llm_server/routes/v1/generate_stream.py @@ -94,7 +94,7 @@ def stream(ws): })) message_num += 1 - generated_text = json_obj['text'][0] + generated_text = generated_text + new # Reset the partial response partial_response = b''