mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
fix(router): satisfy V2 lint and API schema parity
This commit is contained in:
parent
c67b517526
commit
022f4f39b4
2 changed files with 2 additions and 2 deletions
|
|
@ -18968,7 +18968,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"description": "\nUnified rate-limit error.\n\nEvery rate-limit condition surfaced by litellm \u2014 whether it originated from\nan upstream LLM provider, a vendor batch endpoint, or one of litellm's own\nproxy-side limiters (parallel-requests, dynamic-rate, batch-rate, budget,\nmax-iterations, etc.) \u2014 is raised as an instance of this class.\n\nThe :attr:`category` attribute lets callers distinguish the source. See\n:class:`RateLimitErrorCategory` for the available values.\n"
|
||||
"description": "\n Unified rate-limit error.\n\n Every rate-limit condition surfaced by litellm \u2014 whether it originated from\n an upstream LLM provider, a vendor batch endpoint, or one of litellm's own\n proxy-side limiters (parallel-requests, dynamic-rate, batch-rate, budget,\n max-iterations, etc.) \u2014 is raised as an instance of this class.\n\n The :attr:`category` attribute lets callers distinguish the source. See\n :class:`RateLimitErrorCategory` for the available values.\n "
|
||||
},
|
||||
"500": {
|
||||
"content": {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ class LLMV2ProbabilityCalibration(BaseModel):
|
|||
offsets: tuple[LLMV2CalibrationOffset, ...] = Field(default=(), max_length=15)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def _validate_unique_features(self) -> "LLMV2ProbabilityCalibration":
|
||||
def _validate_unique_features(self) -> LLMV2ProbabilityCalibration:
|
||||
if len(frozenset(offset.feature for offset in self.offsets)) != len(self.offsets):
|
||||
raise ValueError("offsets must contain unique demand features")
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue