We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
I can confirm, any progress on this issue yet?
Sorry, something went wrong.
No branches or pull requests
I'm just using the code from the documentation:
And my environment is:
I have tried the following:
code for ws:
Have I missed anything?
The text was updated successfully, but these errors were encountered: