[Frontend] Support strict mode for tool calling with ResponsesAPI (#45396)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2026-06-12 10:59:59 -04:00
committed by GitHub
parent 9ff278b1d2
commit 3b8fc3fe6d
5 changed files with 97 additions and 22 deletions
+4 -1
View File
@@ -165,7 +165,10 @@ class ToolParser:
return request
def get_structural_tag(
self, request: ChatCompletionRequest, *, reasoning: bool = False
self,
request: ChatCompletionRequest | ResponsesRequest,
*,
reasoning: bool = False,
):
if self.structural_tag_model is None:
return None