feat(ai): validate model provider configs before saving#316
Merged
Conversation
prvnsmpth
commented
Jun 11, 2026
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.
61323a2 to
4d5a138
Compare
- 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.
4d5a138 to
bc73467
Compare
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.