Expand description
Provider auto-detection: scan environment for API keys, test connectivity with lightweight API calls, rank providers by cost tier (free > paid), and return a list of ready-to-use providers.
Integrates with the first-run wizard in crate::onboarding::wizard.
Structs§
- Detected
Provider - The result of scanning for one provider.
Enums§
- Provider
Tier - Cost tier for ranking.
Functions§
- detect_
all_ providers - Detect all providers with their status.
- free_
providers - Get a list of free providers (regardless of key status), for suggestions.
- gh_
cli_ installed - Check if the
ghCLI is installed (for GitHub Copilot integration). - ready_
providers - Get a summary list of ready-to-use providers (key found + validated).
- scan_
environment - Scan the environment for all known API keys.
- validate_
api_ key - Test a provider’s API key with a minimal request.
- validate_
detected_ providers - Run validation for all detected providers with keys.