Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Oct 11, 2024
1 parent f186618 commit 0ecec4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/langchain-aws/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,14 @@ export function convertToConverseMessages(messages: BaseMessage[]): {
return {
text: block.text,
};
} else if (block.type === 'document' && block.document !== undefined) {
} else if (
block.type === "document" &&
block.document !== undefined
) {
return {
document: block.document,
};
} else if (block.type === 'image' && block.image !== undefined) {
} else if (block.type === "image" && block.image !== undefined) {
return {
image: block.image,
};
Expand Down

0 comments on commit 0ecec4d

Please sign in to comment.