mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-31 14:52:19 +00:00
fix: minor bug in chat stream output - python error being serialized (#1449)
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user