Skip to content

ui: auto update card upon config#1610

Merged
lily-de merged 11 commits intomainfrom
ldelalande/auto-update-card-upon-config
Mar 12, 2025
Merged

ui: auto update card upon config#1610
lily-de merged 11 commits intomainfrom
ldelalande/auto-update-card-upon-config

Conversation

@lily-de
Copy link
Copy Markdown
Contributor

@lily-de lily-de commented Mar 11, 2025

There was a lag in configuring a new provider getting the green checkmark

before:

  1. submit the configuration for the provider
  2. leave the settings page
  3. come back and you will see the green check

now:

  1. submit the configuration for the provider
  2. the green check appears

also fixed a bug where providers with a combo of required keys with no defaults + required keys with defaults (like openai) weren't being registered as configured)

@lily-de lily-de force-pushed the ldelalande/auto-update-card-upon-config branch from 57ce3b2 to e248167 Compare March 11, 2025 02:55
@@ -338,26 +338,50 @@ pub async fn providers(
fn check_provider_configured(metadata: &ProviderMetadata) -> bool {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

would love an eye on this function in particular -- does this make sense for how we consider a provider is configured or not given that the various permutations of key types (required vs not, has a default to fall back to vs doesn't)

Copy link
Copy Markdown
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

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

nice attention to details, should be much more friendly now.

@lily-de lily-de merged commit 4aafc49 into main Mar 12, 2025
6 checks passed
@lily-de lily-de deleted the ldelalande/auto-update-card-upon-config branch March 12, 2025 00:02
ahau-square pushed a commit that referenced this pull request May 2, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
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.

3 participants