Skip to content

Commit

Permalink
Remove message.content from openai streaming API (oobabooga#5503)
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxykev authored Feb 19, 2024
1 parent 0b2279d commit 10df23e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions extensions/openai/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def chat_streaming_chunk(content):
resp_list: [{
"index": 0,
"finish_reason": None,
# So yeah... do both methods? delta and messages.
"message": {'role': 'assistant', 'content': content},
"delta": {'role': 'assistant', 'content': content},
}],
}
Expand Down

0 comments on commit 10df23e

Please sign in to comment.