Fix ProviderConfig to include rate_limit field

- Add rate_limit field to ProviderConfig model with default value 0.0
- This fixes AttributeError when BaseProviderHandler tries to access rate_limit
- The providers.json file already contains rate_limit for all providers
parent c99aa5ba
...@@ -34,6 +34,7 @@ class ProviderConfig(BaseModel): ...@@ -34,6 +34,7 @@ class ProviderConfig(BaseModel):
endpoint: str endpoint: str
type: str type: str
api_key_required: bool api_key_required: bool
rate_limit: float = 0.0
class RotationConfig(BaseModel): class RotationConfig(BaseModel):
providers: List[Dict] providers: List[Dict]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment