Merge branch 'shareAI-lab:main' into main

This commit is contained in:
若辰 2025-10-08 13:14:03 +08:00 committed by GitHub
commit f934cfa62e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1434,7 +1434,9 @@ async function queryAnthropicNative(
description: typeof tool.description === 'function'
? await tool.description()
: tool.description,
input_schema: zodToJsonSchema(tool.inputSchema),
input_schema:'inputJSONSchema' in tool && tool.inputJSONSchema
? tool.inputJSONSchema
: zodToJsonSchema(tool.inputSchema),
}) as unknown as Anthropic.Beta.Messages.BetaTool,
)
)