Convert Websocket into Server Side Event (SSE) API endpoint

- Convert functions in SSE API path into async generators using yields
- Validate image generation, online, notes lookup and general paths of
  chat request are handled fine by the web client and server API
This commit is contained in:
Debanjum Singh Solanky
2024-07-21 12:10:13 +05:30
parent e694c82343
commit 91fe41106e
6 changed files with 577 additions and 489 deletions

View File

@@ -40,6 +40,7 @@ dependencies = [
"dateparser >= 1.1.1",
"defusedxml == 0.7.1",
"fastapi >= 0.104.1",
"sse-starlette ~= 2.1.0",
"python-multipart >= 0.0.7",
"jinja2 == 3.1.4",
"openai >= 1.0.0",