fix: bing search response filter (#2519)

This commit is contained in:
Yeuoly 2024-02-22 13:06:55 +08:00 • committed by GitHub
commit d8ab4474b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 170 additions and 23 deletions

View file

@ -113,7 +113,7 @@ class ToolParameter(BaseModel):
form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm")
llm_description: Optional[str] = None
required: Optional[bool] = False
default: Optional[str] = None
default: Optional[Union[bool, str, int]] = None
min: Optional[Union[float, int]] = None
max: Optional[Union[float, int]] = None
options: Optional[list[ToolParameterOption]] = None