mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(standard-tests): update multimodal tests (#33781)
This commit is contained in:
@@ -709,7 +709,7 @@ async def test_openai_response_headers_async(use_responses_api: bool) -> None:
|
||||
|
||||
def test_image_token_counting_jpeg() -> None:
|
||||
model = ChatOpenAI(model="gpt-4o", temperature=0)
|
||||
image_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
|
||||
image_url = "https://raw.githubusercontent.com/langchain-ai/docs/9f99bb977307a1bd5efeb8dc6b67eb13904c4af1/src/oss/images/checkpoints.jpg"
|
||||
message = HumanMessage(
|
||||
content=[
|
||||
{"type": "text", "text": "describe the weather in this image"},
|
||||
@@ -741,7 +741,7 @@ def test_image_token_counting_jpeg() -> None:
|
||||
|
||||
def test_image_token_counting_png() -> None:
|
||||
model = ChatOpenAI(model="gpt-4o", temperature=0)
|
||||
image_url = "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
|
||||
image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/images/agentic-rag-output.png"
|
||||
message = HumanMessage(
|
||||
content=[
|
||||
{"type": "text", "text": "how many dice are in this image"},
|
||||
|
||||
Reference in New Issue
Block a user