jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.02k stars 338 forks source link

Web socket failure with the jupyter-ai chat api in LTJH #927

Open JuanMoranAdarraga opened 1 year ago

JuanMoranAdarraga commented 1 year ago

Bug description

Inmediately after an installation of LTJH in Azure following the "Deploy to Azure button", when I install jupyter_ai extension in jupyter hub, the chat interface fails and the browser debugger keeps showing:

WebSocket connection to 'wss://jupyterhub.domainname.com/user/adminuser/api/ai/chats' failed:

Expected behaviour

The chat interface should show a message like this:

Welcome to Jupyter AI! To get started, please select a language model to chat with from the settings panel. You may also need to provide API credentials, so have those handy.

The message shown is this:

There seems to be a problem with the Chat backend, please look at the JupyterLab server logs or contact your administrator to correct this problem.

How to reproduce

I have tried many combinations of versions and it always fails. I think that this extension that works perfectly in a single user environment always fails in LTJH. To reproduce just install LTJH and try to install the extension.

Your personal set up

I am using the LTJH with the automatic configuration from "Deploy to Azure button" that is recommended in the documentation.

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

MridulS commented 1 year ago

@JuanMoranAdarraga What's the version of JupyterLab and JupyterAI are you using? The new JupyterAI release requires JupyterLab 4.0+