infra: temp skip oai embeddings test (#25148)

This commit is contained in:
Bagatur 2024-08-07 10:51:39 -07:00 committed by GitHub
parent a4086119f8
commit 0b4608f71e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
import numpy as np
import openai
import pytest
from langchain_openai.embeddings.base import OpenAIEmbeddings
@ -32,6 +33,7 @@ def test_langchain_openai_embeddings_dimensions() -> None:
assert len(output[0]) == 128
@pytest.mark.skip(reason="flaky")
def test_langchain_openai_embeddings_equivalent_to_raw() -> None:
documents = ["disallowed special token '<|endoftext|>'"]
embedding = OpenAIEmbeddings()
@ -46,6 +48,7 @@ def test_langchain_openai_embeddings_equivalent_to_raw() -> None:
assert np.isclose(lc_output, direct_output).all()
@pytest.mark.skip(reason="flaky")
async def test_langchain_openai_embeddings_equivalent_to_raw_async() -> None:
documents = ["disallowed special token '<|endoftext|>'"]
embedding = OpenAIEmbeddings()