Skip to content

Commit

Permalink
🐛 streaming response
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Nov 8, 2023
1 parent 660a8b8 commit a135620
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llm_term/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def render_streamed_response(response: Stream, console: Console, panel: bool) ->
) as live:
chunk: ChatCompletionChunk
for chunk in response:
if chunk.choices[0].finish_reason is not None:
break
chunk_text = chunk.choices[0].delta.content or ""
complete_message += chunk_text
updated_response = Columns(
Expand Down

0 comments on commit a135620

Please sign in to comment.