mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 10:35:10 +02:00
Remove message.content from openai streaming API (#5503)
This commit is contained in:
parent
0b2279d031
commit
10df23efb7
1 changed files with 0 additions and 2 deletions
|
@ -297,8 +297,6 @@ def chat_completions_common(body: dict, is_legacy: bool = False, stream=False) -
|
||||||
resp_list: [{
|
resp_list: [{
|
||||||
"index": 0,
|
"index": 0,
|
||||||
"finish_reason": None,
|
"finish_reason": None,
|
||||||
# So yeah... do both methods? delta and messages.
|
|
||||||
"message": {'role': 'assistant', 'content': content},
|
|
||||||
"delta": {'role': 'assistant', 'content': content},
|
"delta": {'role': 'assistant', 'content': content},
|
||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue