修改: app/api/bedrock.ts

This commit is contained in:
glay 2024-11-05 23:32:24 +08:00
parent 045adc3567
commit 1f66d3779c
1 changed files with 0 additions and 1 deletions

View File

@ -100,7 +100,6 @@ function formatRequestBody(
}),
};
// 只有在支持工具调用的模型上才添加toolConfig
if (request.tools?.length && supportsToolUse(request.modelId)) {
input.toolConfig = {
tools: request.tools.map((tool) => ({