From 1e401acec3a713b528a1b9b83ee6e70fce10e208 Mon Sep 17 00:00:00 2001 From: Ian Seabock Date: Tue, 30 Jan 2024 09:05:21 -0800 Subject: [PATCH] [fix] Duplicate Punctuation (#541) Co-authored-by: Ian Seabock (Centific Technologies Inc) --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 3a005b416e..f989604aa5 100644 --- a/app.py +++ b/app.py @@ -518,8 +518,8 @@ def conversation_with_data(request_body): return Response(stream_with_data(body, headers, endpoint, history_metadata), mimetype='text/event-stream') def stream_without_data(response, history_metadata={}): - responseText = "" for line in response: + responseText = "" if line["choices"]: deltaText = line["choices"][0]["delta"].get('content') else: