mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-05 11:12:47 +00:00
openai[patch]: remove xfails from image token counting tests (#30963)
These appear to be passing again.
This commit is contained in:
parent
25d77aa8b4
commit
a7c1bccd6a
@ -736,12 +736,6 @@ async def test_openai_response_headers_async(use_responses_api: bool) -> None:
|
||||
assert "content-type" in headers
|
||||
|
||||
|
||||
@pytest.mark.xfail(
|
||||
reason=(
|
||||
"As of 12.19.24 OpenAI API returns 1151 instead of 1118. Not clear yet if "
|
||||
"this is an undocumented API change or a bug on their end."
|
||||
)
|
||||
)
|
||||
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"
|
||||
@ -774,12 +768,6 @@ def test_image_token_counting_jpeg() -> None:
|
||||
assert expected == actual
|
||||
|
||||
|
||||
@pytest.mark.xfail(
|
||||
reason=(
|
||||
"As of 12.19.24 OpenAI API returns 871 instead of 779. Not clear yet if "
|
||||
"this is an undocumented API change or a bug on their end."
|
||||
)
|
||||
)
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user