We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22410a commit 2571f92Copy full SHA for 2571f92
src/providers/bedrock/chatComplete.ts
@@ -355,7 +355,8 @@ export const BedrockConverseChatCompleteConfig: ProviderConfig = {
355
}
356
357
358
- return { ...toolConfig, toolChoice };
+ // TODO: split this into two provider options, one for tools and one for toolChoice
359
+ return tools.length ? { ...toolConfig, toolChoice } : null;
360
},
361
362
guardrailConfig: {
0 commit comments