mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 21:35:52 +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,
|
description: tool.description,
|
||||||
parameters: {
|
parameters: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: tool.inputSchema.properties
|
properties: tool.inputSchema.properties,
|
||||||
|
required: tool.inputSchema.required
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user