Fix xAI tool definitions

Fixes https://gitlab.com/soapbox-pub/shakespeare/-/issues/57
This commit is contained in:
Alex Gleason committed 2025-10-02 17:57:36 -05:00
1 parent aaf30db257
commit 5f2faaad61
1 file changed
+2
+2
View File
@@ -16,6 +16,8 @@ export function toolToOpenAI<TParams>(name: string, tool: Tool<TParams>): OpenAI
if (tool.inputSchema) {
functionDef.parameters = zodSchemaToJsonSchema(tool.inputSchema);
} else {
functionDef.parameters = {};
}
return {