[Cohere] Bound remaining request priorities to the MessagePack int64 range (#56146)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-09-09 18:57:01 -04:00
committed by GitHub
parent 83252ea899
commit 4ebf61ebda
3 changed files with 4 additions and 2 deletions
@@ -93,6 +93,8 @@ class GenerativeScoringRequest(OpenAIBaseModel):
)
priority: int = Field(
default=0,
ge=-(2**63),
le=2**63 - 1,
description=(
"The priority of the request (lower means earlier handling; default: 0)."
),