Open
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)
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:
Metadata
Assignees
Labels
No labels
Activity