Skip to content

feat(ai): validate model provider configs before saving#316

Merged
prvnsmpth merged 7 commits into
masterfrom
fix/surface-ai-chat-errors-in-ui
Jun 25, 2026
Merged

feat(ai): validate model provider configs before saving#316
prvnsmpth merged 7 commits into
masterfrom
fix/surface-ai-chat-errors-in-ui

Conversation

@prvnsmpth

Copy link
Copy Markdown
Contributor
  • Add an AI endpoint and admin UI action to test LLM provider configs before saving.
  • Wrap provider failures with structured error details for provider, model, and status code.
  • Surface provider error details in chat stream failures and add focused tests.

@prvnsmpth prvnsmpth changed the title Add model provider connection testing feat(ai): validate model provider configs before saving Jun 11, 2026
@prvnsmpth prvnsmpth force-pushed the fix/surface-ai-chat-errors-in-ui branch 4 times, most recently from 61323a2 to 4d5a138 Compare June 14, 2026 12:46
- Add an AI endpoint and admin UI action to test LLM provider configs before saving.
- Wrap provider failures with structured error details for provider, model, and status code.
- Surface provider error details in chat stream failures and add focused tests.
@prvnsmpth prvnsmpth force-pushed the fix/surface-ai-chat-errors-in-ui branch from 4d5a138 to bc73467 Compare June 25, 2026 04:06
- Show full test-connection errors in a tooltip on the LLM settings page.
- Use provider-level checks when testing providers before any model is configured.
- Add coverage for no-model connection tests across compatible cloud providers.
- Move Test connection out of the dialog footer into an inline connection check section.
- Keep footer actions focused on Cancel and Connect/Update.
- Clear previous test results when connection fields change.
- Add provider model discovery endpoint in the AI service.
- Seed new providers with discovered models, falling back to predefined defaults.
- Add coverage for provider model listing.
- Use model listing instead of completion requests for provider connection tests.
- Return the first discovered model in the test result when available.
- Render the inline test action as a secondary button.
- Remove the separate test connection action from the provider dialog.
- Validate provider credentials before creating or updating a provider.
- Keep the dialog open and show inline errors when validation fails.
- Avoid returning default model names for provider-level test errors.
- Keep failure details focused on provider and status code.
- Update connection test coverage for null error models.
@prvnsmpth prvnsmpth merged commit 3590ed2 into master Jun 25, 2026
35 checks passed
@prvnsmpth prvnsmpth deleted the fix/surface-ai-chat-errors-in-ui branch June 25, 2026 08:03
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.

1 participant