Skip to content

Fails when used with %ai magic #1

Open
@jhgoebbert

Description

When used with %ai magic as it fails with

ValidationError: 1 validation error for ChatBlabladorProvider
__root__
  Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)

grafik
This must be related to the following code

    auth_strategy =  EnvAuthStrategy(
        name="BLABLADOR_API_KEY", keyword_param="openai_api_key",
    )

in https://github.com/FZJ-JSC/jupyter-ai-blablador/blob/main/jupyter_ai_blablador/provider.py#L59

But even if I define OPENAI_API_KEY it claims this would be invalid even though the same key works fine in the chat-panel as you can see:
grafik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions