bstraehle commited on
Commit
d9aff90
1 Parent(s): 5b28a9d

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +6 -9
utils.py CHANGED
@@ -35,14 +35,11 @@ def function_to_schema(func) -> dict:
35
  ]
36
 
37
  return {
38
- "type": "function",
39
- "function": {
40
- "name": func.__name__,
41
- "description": func.__doc__ or "",
42
- "parameters": {
43
- "type": "object",
44
- "properties": parameters,
45
- "required": required,
46
- },
47
  },
48
  }
 
35
  ]
36
 
37
  return {
38
+ "name": func.__name__,
39
+ "description": func.__doc__ or "",
40
+ "parameters": {
41
+ "type": "object",
42
+ "properties": parameters,
43
+ "required": required,
 
 
 
44
  },
45
  }