mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +00:00
fix: correct input schema property name in getTools method (#5095)
This commit is contained in:
@@ -78,13 +78,15 @@ export class MCPClient {
|
|||||||
const tools = response.tools.map((tool) => ({
|
const tools = response.tools.map((tool) => ({
|
||||||
name: tool.name,
|
name: tool.name,
|
||||||
description: tool.description || '',
|
description: tool.description || '',
|
||||||
input_schema: tool.inputSchema ? {
|
inputSchema: tool.inputSchema
|
||||||
...tool.inputSchema,
|
? {
|
||||||
properties: tool.inputSchema.properties || {}
|
...tool.inputSchema,
|
||||||
} : {
|
properties: tool.inputSchema.properties || {}
|
||||||
type: 'object',
|
}
|
||||||
properties: {}
|
: {
|
||||||
}
|
type: 'object',
|
||||||
|
properties: {}
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
Reference in New Issue
Block a user