mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 05:36:39 +08:00
修改: 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
Block a user