Skip to content

Commit a7c1bcc

Browse files
authored
openai[patch]: remove xfails from image token counting tests (#30963)
These appear to be passing again.
1 parent 25d77aa commit a7c1bcc

File tree

1 file changed

+0
-12
lines changed
  • libs/partners/openai/tests/integration_tests/chat_models

1 file changed

+0
-12
lines changed

libs/partners/openai/tests/integration_tests/chat_models/test_base.py

-12
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,6 @@ async def test_openai_response_headers_async(use_responses_api: bool) -> None:
736736
assert "content-type" in headers
737737

738738

739-
@pytest.mark.xfail(
740-
reason=(
741-
"As of 12.19.24 OpenAI API returns 1151 instead of 1118. Not clear yet if "
742-
"this is an undocumented API change or a bug on their end."
743-
)
744-
)
745739
def test_image_token_counting_jpeg() -> None:
746740
model = ChatOpenAI(model="gpt-4o", temperature=0)
747741
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"
@@ -774,12 +768,6 @@ def test_image_token_counting_jpeg() -> None:
774768
assert expected == actual
775769

776770

777-
@pytest.mark.xfail(
778-
reason=(
779-
"As of 12.19.24 OpenAI API returns 871 instead of 779. Not clear yet if "
780-
"this is an undocumented API change or a bug on their end."
781-
)
782-
)
783771
def test_image_token_counting_png() -> None:
784772
model = ChatOpenAI(model="gpt-4o", temperature=0)
785773
image_url = "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"

0 commit comments

Comments
 (0)