You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Add key-level model discovery status tracking to improve visibility into API key health and model availability.
## Changes
- Added model discovery status tracking for individual API keys
- Enhanced `ListAllModels` to collect and return key status information
- Added database columns to store model discovery status and error messages
- Updated UI to display key status with visual indicators and tooltips
- Improved error handling in model discovery process
- Added automatic model discovery when adding or updating providers
## Type of change
- [x] Feature
- [x] Refactor
## Affected areas
- [x] Core (Go)
- [x] Transports (HTTP)
- [x] UI (Next.js)
## How to test
1. Add a new provider with valid and invalid API keys
2. Observe the status indicators in the UI for each key
3. Hover over status icons to see detailed error messages for failed keys
```sh
# Core/Transports
go version
go test ./...
# UI
cd ui
pnpm i
pnpm build
```
## Screenshots/Recordings
N/A
## Breaking changes
- [x] No
## Related issues
N/A
## Security considerations
This change only exposes error information about API keys to authenticated users with appropriate permissions.
## Checklist
- [x] I read `docs/contributing/README.md` and followed the guidelines
- [x] I added/updated tests where appropriate
- [x] I updated documentation where needed
- [x] I verified builds succeed (Go and UI)
- [x] I verified the CI pipeline passes locally if applicable
// Key represents an API key and its associated configuration for a provider.
7
14
// It contains the key value, supported models, and a weight for load balancing.
8
15
typeKeystruct {
@@ -19,6 +26,8 @@ type Key struct {
19
26
Enabled*bool`json:"enabled,omitempty"`// Whether the key is active (default:true)
20
27
UseForBatchAPI*bool`json:"use_for_batch_api,omitempty"`// Whether this key can be used for batch API operations (default:false for new keys, migrated keys default to true)
21
28
ConfigHashstring`json:"config_hash,omitempty"`// Hash of config.json version, used for change detection
29
+
StatusKeyStatusType`json:"status,omitempty"`// Status of key
30
+
Descriptionstring`json:"description,omitempty"`// Description of key
22
31
}
23
32
24
33
// AzureKeyConfig represents the Azure-specific configuration.
0 commit comments