forked from cardosofelipe/fast-next-template
refactor(safety): apply consistent formatting across services and tests
Improved code readability and uniformity by standardizing line breaks, indentation, and inline conditions across safety-related services, models, and tests, including content filters, validation rules, and emergency controls.
This commit is contained in:
@@ -212,9 +212,7 @@ class ValidationResult(BaseModel):
|
||||
applied_rules: list[str] = Field(
|
||||
default_factory=list, description="IDs of applied rules"
|
||||
)
|
||||
reasons: list[str] = Field(
|
||||
default_factory=list, description="Reasons for decision"
|
||||
)
|
||||
reasons: list[str] = Field(default_factory=list, description="Reasons for decision")
|
||||
approval_id: str | None = Field(None, description="Approval request ID if needed")
|
||||
retry_after_seconds: float | None = Field(
|
||||
None, description="Retry delay if rate limited"
|
||||
@@ -267,9 +265,7 @@ class RateLimitConfig(BaseModel):
|
||||
limit: int = Field(..., description="Maximum allowed in window")
|
||||
window_seconds: int = Field(60, description="Time window in seconds")
|
||||
burst_limit: int | None = Field(None, description="Burst allowance")
|
||||
slowdown_threshold: float = Field(
|
||||
0.8, description="Start slowing at this fraction"
|
||||
)
|
||||
slowdown_threshold: float = Field(0.8, description="Start slowing at this fraction")
|
||||
|
||||
|
||||
class RateLimitStatus(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user