diff --git a/src/rotator_library/providers/firmware_provider.py b/src/rotator_library/providers/firmware_provider.py index 0ef1a3195..dc856996f 100644 --- a/src/rotator_library/providers/firmware_provider.py +++ b/src/rotator_library/providers/firmware_provider.py @@ -32,8 +32,18 @@ class FirmwareProvider(FirmwareQuotaTracker, ProviderInterface): """ Provider implementation for the Firmware.ai API with quota tracking. + + Firmware.ai is OpenAI-compatible, so requests are routed through LiteLLM's + OpenAI provider with api_base override. This class provides: + - Quota tracking via the FirmwareQuotaTracker mixin + - Model discovery from Firmware.ai's /models endpoint + - Cost calculation is skipped since Firmware models aren't in LiteLLM's pricing DB """ + # Skip LiteLLM cost calculation - Firmware.ai models use custom naming + # (e.g., firmware/anthropic/claude-sonnet-4-5) not in LiteLLM's pricing database + skip_cost_calculation: bool = True + # Quota groups for tracking 5-hour rolling window limits # Uses a virtual model "firmware/_quota" for credential-level quota tracking model_quota_groups = {