mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix(mcp): add required to tool call parameters
This commit is contained in:
parent
cb0313e0a6
commit
a53f596b0c
@ -234,7 +234,8 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
description: tool.description,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: tool.inputSchema.properties
|
||||
properties: tool.inputSchema.properties,
|
||||
required: tool.inputSchema.required
|
||||
}
|
||||
}
|
||||
}))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user