yym68686 commited on
Commit
972208e
·
1 Parent(s): 8c8e294

🐛 Bug: Fix the bug where tool use is not compatible with enum fields.

Browse files
Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -5,7 +5,7 @@ from log_config import logger
5
 
6
  class FunctionParameter(BaseModel):
7
  type: str
8
- properties: Dict[str, Dict[str, Union[str, Dict[str, str]]]]
9
  required: List[str]
10
 
11
  class Function(BaseModel):
 
5
 
6
  class FunctionParameter(BaseModel):
7
  type: str
8
+ properties: Dict[str, Dict[str, Any]]
9
  required: List[str]
10
 
11
  class Function(BaseModel):