Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 22, 2024
1 parent a3c60d2 commit fee7ba2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/langchain-community/src/utils/bedrock/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ export function formatMessagesForAnthropic(messages: BaseMessage[]): {
};
}
} else {


const formattedContent = _formatContent(message.content);
if (Array.isArray(formattedContent)) {
const formattedToolsContent = message.tool_calls.map(
Expand All @@ -227,7 +225,7 @@ export function formatMessagesForAnthropic(messages: BaseMessage[]): {

return {
role,
content: _formatContent(message.content),
content: formattedContent,
};
}
} else {
Expand Down

0 comments on commit fee7ba2

Please sign in to comment.