Skip to content

Commit

Permalink
🐛 Bug: Fix the bug where tool use is not compatible with enum fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Oct 24, 2024
1 parent 8c8e294 commit 972208e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class FunctionParameter(BaseModel):
type: str
properties: Dict[str, Dict[str, Union[str, Dict[str, str]]]]
properties: Dict[str, Dict[str, Any]]
required: List[str]

class Function(BaseModel):
Expand Down

0 comments on commit 972208e

Please sign in to comment.