Skip to content

The agent engineering platform.

test(openai): use `gpt-4o` for image token counting (#38089)

Mason Daugherty95d16333413c
diff --git a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py b/libs/partners/openai/tests/integration_tests/chat_models/test_base.py
index 4c726a762f..6ad56f1118 100644
--- a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py
+++ b/libs/partners/openai/tests/integration_tests/chat_models/test_base.py
@@ -708,7 +708,7 @@ async def test_openai_response_headers_async(use_responses_api: bool) -> None:
def test_image_token_counting_jpeg() -> None:
- model = ChatOpenAI(model="gpt-4.1-mini", temperature=0)
+ model = ChatOpenAI(model="gpt-4o", temperature=0)
image_url = "https://raw.githubusercontent.com/langchain-ai/docs/9f99bb977307a1bd5efeb8dc6b67eb13904c4af1/src/oss/images/checkpoints.jpg"
message = HumanMessage(
content=[
@@ -742,7 +742,7 @@ def test_image_token_counting_jpeg() -> None:
def test_image_token_counting_png() -> None:
- model = ChatOpenAI(model="gpt-4.1-mini", temperature=0)
+ model = ChatOpenAI(model="gpt-4o", temperature=0)
image_url = "https://raw.githubusercontent.com/langchain-ai/docs/4d11d08b6b0e210bd456943f7a22febbd168b543/src/images/agentic-rag-output.png"
message = HumanMessage(
content=[