Skip to content

[BUG] Crash when generating with unconfigured providers #62

@KaminaDuck

Description

@KaminaDuck

Describe the bug

When generating a caption with a provider that is not configured, the UI crashes.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Choose a dataset.
  2. Select any image.
  3. Select any perspective.
  4. Select a provider that has not been configured.
  5. Click Generate.

Expected Behavior

A modal with an error that states there is a problem with the provider.

Actual Behavior

The UI changes to an all black screen. Refreshing the page restores the connection to graphcap.

Screenshots (if applicable)

Web page when it crashes:

Image

Browser console when a model has not been specified (in this example, vllm is not configured):

Image

Browser console when there is an error in the connection, such as using the wrong model or not having an API key (in this example, there is no API key used for Google Gemini):

Image

Image

Image

Environment

Please complete the following information:

  • OS: Windows 11
  • Browser/Platform: Vivaldi
  • graphcap Version: 0.1.1

Metadata

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