浏览代码

refac: tool specs

Timothy J. Baek 10 月之前
父节点
当前提交
03bb4bcda6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/utils/tools.py

+ 1 - 0
backend/utils/tools.py

@@ -67,6 +67,7 @@ def get_tools_specs(tools) -> List[dict]:
                             function
                         ).parameters.items()
                         if param.default is param.empty
+                        and not (name.startswith("__") and name.endswith("__"))
                     ],
                 },
             }