From 85605b8c727e58b36997b0dc2c772c7df140e714 Mon Sep 17 00:00:00 2001 From: "minke.yu" Date: Fri, 13 Nov 2026 23:25:50 +0800 Subject: [PATCH] fix(protocol): ResponseTool accepts extra fields (tool_search execution) --- python/sglang/srt/entrypoints/openai/protocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/sglang/srt/entrypoints/openai/protocol.py b/python/sglang/srt/entrypoints/openai/protocol.py index d5ce0a7802..7749699675 100644 --- a/python/sglang/srt/entrypoints/openai/protocol.py +++ b/python/sglang/srt/entrypoints/openai/protocol.py @@ -1836,6 +1836,8 @@ RESPONSE_TOOL_TYPES = Literal[ class ResponseTool(BaseModel): """Tool definition for responses.""" + model_config = ConfigDict(extra="allow") + type: RESPONSE_TOOL_TYPES = Field(description="Type of tool to enable") name: Optional[str] = None description: Optional[str] = None