Add conversation support for Bing

This commit is contained in:
Heiner Lohaus 2024-03-16 18:07:53 +01:00
parent f861f322aa
commit 4778356064
5 changed files with 113 additions and 46 deletions

View file

@ -85,7 +85,7 @@ class Backend_Api(Api):
kwargs = self._prepare_conversation_kwargs(json_data, kwargs)
return self.app.response_class(
self._create_response_stream(kwargs),
self._create_response_stream(kwargs, json_data.get("conversation_id")),
mimetype='text/event-stream'
)