Fix tools for OpenAI models

This commit is contained in:
Alex Gleason committed 2025-10-08 16:38:09 -05:00
1 parent e28863f38a
commit cb1bb48c4c
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ export function toolToOpenAI<TParams>(name: string, tool: Tool<TParams>): OpenAI
if (tool.inputSchema) {
functionDef.parameters = zodSchemaToJsonSchema(tool.inputSchema);
} else {
functionDef.parameters = { type: "object" };
functionDef.parameters = { type: "object", properties: {} };
}
return {