Skip to content

Commit

Permalink
groq: xfail tool_choice tests (#20247)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored and hinthornw committed Apr 26, 2024
1 parent 5c4f33d commit b8e6641
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_system_message() -> None:
assert isinstance(response.content, str)


@pytest.mark.scheduled
@pytest.mark.xfail(reason="Groq tool_choice doesn't currently force a tool call")
def test_tool_choice() -> None:
"""Test that tool choice is respected."""
llm = ChatGroq()
Expand All @@ -248,7 +248,7 @@ class MyTool(BaseModel):
assert tool_call["type"] == "function"


@pytest.mark.scheduled
@pytest.mark.xfail(reason="Groq tool_choice doesn't currently force a tool call")
def test_tool_choice_bool() -> None:
"""Test that tool choice is respected just passing in True."""
llm = ChatGroq()
Expand All @@ -273,6 +273,7 @@ class MyTool(BaseModel):
assert tool_call["type"] == "function"


@pytest.mark.xfail(reason="Groq tool_choice doesn't currently force a tool call")
def test_streaming_tool_call() -> None:
"""Test that tool choice is respected."""
llm = ChatGroq()
Expand Down Expand Up @@ -302,6 +303,7 @@ class MyTool(BaseModel):
assert tool_call["type"] == "function"


@pytest.mark.xfail(reason="Groq tool_choice doesn't currently force a tool call")
async def test_astreaming_tool_call() -> None:
"""Test that tool choice is respected."""
llm = ChatGroq()
Expand Down

0 comments on commit b8e6641

Please sign in to comment.