[Frontend] Skip structural tags for auto tool_choice without strict mode (#45600)
Signed-off-by: sfeng33 <4florafeng@gmail.com>
This commit is contained in:
@@ -75,6 +75,7 @@ class AnthropicTool(BaseModel):
|
||||
name: str
|
||||
description: str | None = None
|
||||
input_schema: dict[str, Any]
|
||||
strict: bool | None = None
|
||||
defer_loading: bool | None = None
|
||||
|
||||
@field_validator("input_schema")
|
||||
|
||||
@@ -462,6 +462,7 @@ class AnthropicServingMessages(OpenAIServingChat):
|
||||
"name": tool.name,
|
||||
"description": tool.description,
|
||||
"parameters": tool.input_schema,
|
||||
"strict": tool.strict,
|
||||
"defer_loading": tool.defer_loading,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user