mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Merge remote-tracking branch 'origin/main' into capacitor
This commit is contained in:
1 file changed
+1
-1
@@ -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 = {};
|
||||
functionDef.parameters = { type: "object" };
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user