Skip to content

Commit 10df23e

Browse files
authored
Remove message.content from openai streaming API (oobabooga#5503)
1 parent 0b2279d commit 10df23e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

extensions/openai/completions.py

-2
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ def chat_streaming_chunk(content):
297297
resp_list: [{
298298
"index": 0,
299299
"finish_reason": None,
300-
# So yeah... do both methods? delta and messages.
301-
"message": {'role': 'assistant', 'content': content},
302300
"delta": {'role': 'assistant', 'content': content},
303301
}],
304302
}

0 commit comments

Comments
 (0)