Merge feature/update-bedrock-api into main

This commit is contained in:
glay
2024-11-05 20:20:20 +08:00
parent 1164e1bdf6
commit 1998cf5ced
2 changed files with 7 additions and 12 deletions

View File

@@ -41,10 +41,7 @@ export interface ConverseRequest {
function supportsToolUse(modelId: string): boolean {
// llama和mistral模型不支持工具调用
return (
modelId.toLowerCase().includes("claude-3") &&
modelId.toLowerCase().includes("claude-3-5")
);
return modelId.toLowerCase().includes("claude-3");
}
function formatRequestBody(