potpie
potpie copied to clipboard
Add caching for API keys in ProviderService
Summary by CodeRabbit
-
Refactor
- Improved API key handling: adds memoized caching of provider credentials to reduce repeated lookups and improve reliability.
- Introduces transparent fallbacks to provider-specific configuration when primary secrets are unavailable, reducing failures and latency.
-
Style
- Reformatted tool initialization code for clearer readability and easier maintenance.
✏️ Tip: You can customize this high-level summary in your review settings.