Skip to content

Inconsistent experience with respect to non-installed third-party packages #840

Open
@krassowski

Description

Description

On a fresh install there are no Open AI models listed any more; this is similar for Anthropic. This tripped many users:

Yet, the Hugging Face Hub is listed. When user selects it and attempts to use it it throws an error:

pydantic.error_wrappers.ValidationError: 1 validation error for HfHubProvider __root__ Could not import huggingface_hub python package. Please install it with `pip install huggingface_hub`. (type=value_error)

Expected behavior

  • Either all models that jupyter-ai supports out of the box are shown or no models are shown by default or none of them are shown by default.
  • When a package is needed, the model is greyed out and user is prompted to install it. Ideally without restarting Jupyter server.

Context

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions