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.01k stars 341 forks source link

Does not pick up jupyter-ai config #980

Closed ad-si closed 2 months ago

ad-si commented 2 months ago

Bug description

I'm trying to set up a default config for jupyter-ai as described here: https://jupyter-ai.readthedocs.io/en/latest/users/index.html#configuring-as-a-config-file

I put the config file at /home/jupyter-adrian/.jupyter/jupyter_jupyter_ai_config.json, but the settings don't seem got get picked up. I'm still getting the error: OSError: Authentication environment variable OPENAI_API_KEY is not set.

Your personal set up

Clean install of TLJH version 4.1.6

Didn't see anything relevant in the journalctl logs.

welcome[bot] commented 2 months 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:

manics commented 2 months ago

Hi :wave: This sounds like a configuration problem rather than a bug. Do you mind posting this as a question on https://discourse.jupyter.org/ instead?

When you post there please can you show your full configuration, e.g. where are you setting OPENAI_API_KEY? Thanks!