Skip to content

Commit

Permalink
skip test cases for mistralai
Browse files Browse the repository at this point in the history
  • Loading branch information
raspawar committed Jul 12, 2024
1 parent 88c51cc commit 8fdfeb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/ai-endpoints/tests/integration_tests/test_chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ def test_messages(
) -> None:
if not system and not exchange:
pytest.skip("No messages to test")
if (
chat_model == "mistralai/mixtral-8x7b-instruct-v0.1"
and exchange
and isinstance(exchange[0], AIMessage)
):
pytest.skip("mistralai does not support system=>AIMessage")
chat = ChatNVIDIA(model=chat_model, max_tokens=36, **mode)
response = chat.invoke(system + exchange)
assert isinstance(response, BaseMessage)
Expand Down

0 comments on commit 8fdfeb7

Please sign in to comment.