Skip to content

Commit

Permalink
[fix] Duplicate Punctuation (#541)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Seabock (Centific Technologies Inc) <[email protected]>
  • Loading branch information
iseabock and Ian Seabock (Centific Technologies Inc) committed Jan 30, 2024
1 parent 33564a9 commit 1e401ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1e401ac

Please sign in to comment.