修改: app/api/bedrock.ts
This commit is contained in:
parent
045adc3567
commit
1f66d3779c
|
@ -100,7 +100,6 @@ function formatRequestBody(
|
|||
}),
|
||||
};
|
||||
|
||||
// 只有在支持工具调用的模型上才添加toolConfig
|
||||
if (request.tools?.length && supportsToolUse(request.modelId)) {
|
||||
input.toolConfig = {
|
||||
tools: request.tools.map((tool) => ({
|
||||
|
|
Loading…
Reference in New Issue