mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Remove message.content from openai streaming API (#5503)
This commit is contained in:
parent
0b2279d031
commit
10df23efb7
@ -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 New Issue
Block a user