mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix xAI tool definitions
Fixes https://gitlab.com/soapbox-pub/shakespeare/-/issues/57
This commit is contained in:
1 file changed
+2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user