feat: add model connectivity testing endpoints#40
Merged
Merged
Conversation
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.
Summary
Add admin-side model testing for platform models and upstream route bindings. Platform models now support Test all, which probes all active matching upstream routes and lets admins switch between each result in the dialog. The dialog shows sanitized request/response details, latency, status code, protocol, endpoint, and supports deleting the current upstream model binding with confirmation.
Also refined the model management table UI: left-align model type tags and keep image protocol ordering stable as Images Generations before Images Edits.
Change type
Affected areas
Verification
cd backend && go test ./...cd backend && make swaggerpnpm --dir frontend lintpnpm --dir frontend exec tsc --noEmitgit diff --checkScreenshots, API examples, or logs
Admin API changes:
POST /api/v1/admin/llm/models/{id}/test-allPOST /api/v1/admin/llm/models/{id}/testPOST /api/v1/admin/llm/upstreams/{id}/models/{route_id}/testDebug output is sanitized before returning to the frontend.
Configuration, migration, and compatibility notes
Configuration changes: None.
API changes: Adds platform model batch test endpoint. Existing single model and upstream route test endpoints remain available.
Database migrations: None.
Deployment changes: None.
Backward compatibility: Existing model routing and upstream configuration behavior is unchanged.
Documentation
Swagger docs were regenerated.
Security and privacy
Model test debug output redacts API keys, Authorization headers, sensitive headers, Base URL, and upstream host before returning to admins.
Checklist
.pycfiles,.envfiles, and local storage data are not committed.