mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
standard tests: add xfails (#20659)
This commit is contained in:
parent
ddc2274aea
commit
5a3c65a756
6
.github/workflows/scheduled_test.yml
vendored
6
.github/workflows/scheduled_test.yml
vendored
@ -19,11 +19,11 @@ jobs:
|
|||||||
working-directory:
|
working-directory:
|
||||||
- "libs/partners/openai"
|
- "libs/partners/openai"
|
||||||
- "libs/partners/anthropic"
|
- "libs/partners/anthropic"
|
||||||
# - "libs/partners/ai21" # standard-tests broken
|
- "libs/partners/ai21"
|
||||||
- "libs/partners/fireworks"
|
- "libs/partners/fireworks"
|
||||||
# - "libs/partners/groq" # rate-limited
|
- "libs/partners/groq"
|
||||||
- "libs/partners/mistralai"
|
- "libs/partners/mistralai"
|
||||||
# - "libs/partners/together" # rate-limited
|
- "libs/partners/together"
|
||||||
name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }}
|
name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -19,3 +19,25 @@ class TestAI21Standard(ChatModelIntegrationTests):
|
|||||||
return {
|
return {
|
||||||
"model": "j2-ultra",
|
"model": "j2-ultra",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pytest.mark.xfail(reason="Emits AIMessage instead of AIMessageChunk.")
|
||||||
|
def test_stream(
|
||||||
|
self,
|
||||||
|
chat_model_class: Type[BaseChatModel],
|
||||||
|
chat_model_params: dict,
|
||||||
|
) -> None:
|
||||||
|
super().test_stream(
|
||||||
|
chat_model_class,
|
||||||
|
chat_model_params,
|
||||||
|
)
|
||||||
|
|
||||||
|
@pytest.mark.xfail(reason="Emits AIMessage instead of AIMessageChunk.")
|
||||||
|
async def test_astream(
|
||||||
|
self,
|
||||||
|
chat_model_class: Type[BaseChatModel],
|
||||||
|
chat_model_params: dict,
|
||||||
|
) -> None:
|
||||||
|
await super().test_astream(
|
||||||
|
chat_model_class,
|
||||||
|
chat_model_params,
|
||||||
|
)
|
||||||
|
@ -13,3 +13,14 @@ class TestMistralStandard(ChatModelIntegrationTests):
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def chat_model_class(self) -> Type[BaseChatModel]:
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
||||||
return ChatGroq
|
return ChatGroq
|
||||||
|
|
||||||
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
||||||
|
def test_tool_message_histories_list_content(
|
||||||
|
self,
|
||||||
|
chat_model_class: Type[BaseChatModel],
|
||||||
|
chat_model_params: dict,
|
||||||
|
chat_model_has_tool_calling: bool,
|
||||||
|
) -> None:
|
||||||
|
super().test_tool_message_histories_list_content(
|
||||||
|
chat_model_class, chat_model_params, chat_model_has_tool_calling
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user