Open antoineross opened 2 months ago
I'm just using the code from the documentation:
from chainlit.server import app from fastapi import Request from fastapi.responses import HTMLResponse from chainlit.context import init_http_context import chainlit as cl @app.get("/hello") async def hello(request: Request): init_http_context() await cl.Message(content="Hello World").send() return HTMLResponse("Hello World")
And my environment is:
python = 3.11 chainlit == 1.0.502 literalai == 0.0.500 openai == 1.17.1
I have tried the following:
@app.get("/hello/{session_id}") async def hello(request: Request, session_id: str): ws_session = WebsocketSession.get_by_id(session_id=session_id) init_ws_context(ws_session) await cl.Message(content="Hello World").send() return HTMLResponse("Data sent to the websocket client")
Have I missed anything?
I can confirm, any progress on this issue yet?
I'm just using the code from the documentation:
And my environment is:
I have tried the following:
Have I missed anything?