From bfff481b84ac88ca4a3e9ba4c075d0d32150da91 Mon Sep 17 00:00:00 2001 From: Taksh Date: Sat, 11 Apr 2026 13:30:03 +0530 Subject: [PATCH] Fix ModelPermission.is_blocking type annotation (str -> bool) The `is_blocking` field in ModelPermission was annotated as `str` but defaulted to the boolean `False`, contradicting the declared type. All other permission flags in the class use `bool`, and OpenAI's ModelPermission schema (which this class mirrors for /v1/models responses) defines `is_blocking` as a boolean. Fix the annotation to match the default and the upstream spec. --- fastchat/protocol/openai_api_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastchat/protocol/openai_api_protocol.py b/fastchat/protocol/openai_api_protocol.py index bb50a5ef0..990f1f804 100644 --- a/fastchat/protocol/openai_api_protocol.py +++ b/fastchat/protocol/openai_api_protocol.py @@ -24,7 +24,7 @@ class ModelPermission(BaseModel): allow_fine_tuning: bool = False organization: str = "*" group: Optional[str] = None - is_blocking: str = False + is_blocking: bool = False class ModelCard(BaseModel):