Update app.py
Browse files
app.py
CHANGED
@@ -530,9 +530,8 @@ def parse_data_chunk(data_chunk):
|
|
530 |
Returns:
|
531 |
list: A list of individual data entries with whitespace stripped.
|
532 |
"""
|
533 |
-
def parse_data_chunk(data_chunk):
|
534 |
if isinstance(data_chunk, ChatCompletionStreamOutput):
|
535 |
-
|
536 |
chunks = data_chunk.split("data:")
|
537 |
|
538 |
|
|
|
530 |
Returns:
|
531 |
list: A list of individual data entries with whitespace stripped.
|
532 |
"""
|
|
|
533 |
if isinstance(data_chunk, ChatCompletionStreamOutput):
|
534 |
+
data_chunk = data_chunk.text
|
535 |
chunks = data_chunk.split("data:")
|
536 |
|
537 |
|