Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins committed Aug 20, 2024
1 parent fb13e12 commit e49995a
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions libs/aws/tests/unit_tests/chat_models/test_bedrock_converse.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,30 +164,23 @@ def test__messages_to_bedrock() -> None:
HumanMessage(
content=[
{
"type": "document",
"type": "document",
"document": {
"format": "pdf",
"name": "doc1",
"source": {
"bytes": b"doc1_data"
}
}
"source": {"bytes": b"doc1_data"},
},
}
]
),
HumanMessage(
content=[
{
"type": "image",
"image": {
"format": "jpeg",
"source": {
"bytes": b"image_data"
}
}
"image": {"format": "jpeg", "source": {"bytes": b"image_data"}},
}
]
)
),
]
expected_messages = [
{"role": "user", "content": [{"text": "hu1"}, {"text": "hu2"}]},
Expand Down Expand Up @@ -260,21 +253,12 @@ def test__messages_to_bedrock() -> None:
"document": {
"format": "pdf",
"name": "doc1",
"source": {
"bytes": b"doc1_data"
}
"source": {"bytes": b"doc1_data"},
}
},
{
"image": {
"format": "jpeg",
"source": {
"bytes": b"image_data"
}
}
}
{"image": {"format": "jpeg", "source": {"bytes": b"image_data"}}},
],
}
},
]
expected_system = [
{"text": "sys1"},
Expand Down

0 comments on commit e49995a

Please sign in to comment.