mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
fix: minor bug in chat stream output - python error being serialized (#1449)
This commit is contained in:
parent
d3acd85fe3
commit
6191bcdbd6
1 changed files with 1 additions and 1 deletions
|
|
@ -118,5 +118,5 @@ def to_openai_sse_stream(
|
|||
yield f"data: {OpenAICompletion.json_from_delta(text=response.delta)}\n\n"
|
||||
else:
|
||||
yield f"data: {OpenAICompletion.json_from_delta(text=response, sources=sources)}\n\n"
|
||||
yield f"data: {OpenAICompletion.json_from_delta(text=None, finish_reason='stop')}\n\n"
|
||||
yield f"data: {OpenAICompletion.json_from_delta(text='', finish_reason='stop')}\n\n"
|
||||
yield "data: [DONE]\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue