Skip to content

Support passing API keys as environmental variables? #1355

Open
@cboettig

Description

@cboettig

Problem

I would like to use jupyter-ai in my classroom Jupyterhub without asking students to manually configure API keys. Environmental variables are a commonly used in Jupyterhub and elsewhere to contain such secrets.

Proposed Solution

I can provide my hub with an image already containing a jupyter/jupyter_ai/config.json, but want to be able to write $OPENAI_API_KEY as the key such that the key is loaded from the environmental variable provided via kubernetes secrets rather than hard-coded into the config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions