From 10df23efb73c6da1137284c39373c7cc5e0743d3 Mon Sep 17 00:00:00 2001 From: Kevin Pham <37129444+deoxykev@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:50:27 -0800 Subject: [PATCH] Remove message.content from openai streaming API (#5503) --- extensions/openai/completions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/extensions/openai/completions.py b/extensions/openai/completions.py index c6deefb3..897d542c 100644 --- a/extensions/openai/completions.py +++ b/extensions/openai/completions.py @@ -297,8 +297,6 @@ def chat_completions_common(body: dict, is_legacy: bool = False, stream=False) - 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}, }], }