Skip to content

UI: query provider for supported models #4270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

angelahning
Copy link
Collaborator

The UI queries the providers for the list of supported models, instead of using our hard-coded lists.

fixes #3645

Screen.Recording.2025-08-17.at.10.44.26.PM.mov

Signed-off-by: Angela Ning <aning@squareup.com>
@angelahning angelahning marked this pull request as ready for review August 22, 2025 01:16
@angelahning angelahning requested a review from zanesq August 22, 2025 01:16
Copy link
Collaborator

@zanesq zanesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice works well!

Couple of nits:

  1. maybe we want to add type to search also to provider dropdown label to be consistent?
image
  1. Currently, 500 is always returned if the provider fails, even for known/expected failures (e.g., invalid API key). Can we distinguish between transient errors and permanent misconfigurations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In the UI we dont seem to load the actual models
2 participants