mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 17:38:36 +00:00
groq: xfail tool_choice tests (#20247)
This commit is contained in:
parent
2d83505be9
commit
00552918ac
@ -223,7 +223,7 @@ def test_system_message() -> None:
|
|||||||
assert isinstance(response.content, str)
|
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:
|
def test_tool_choice() -> None:
|
||||||
"""Test that tool choice is respected."""
|
"""Test that tool choice is respected."""
|
||||||
llm = ChatGroq()
|
llm = ChatGroq()
|
||||||
@ -248,7 +248,7 @@ def test_tool_choice() -> None:
|
|||||||
assert tool_call["type"] == "function"
|
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:
|
def test_tool_choice_bool() -> None:
|
||||||
"""Test that tool choice is respected just passing in True."""
|
"""Test that tool choice is respected just passing in True."""
|
||||||
llm = ChatGroq()
|
llm = ChatGroq()
|
||||||
@ -273,6 +273,7 @@ def test_tool_choice_bool() -> None:
|
|||||||
assert tool_call["type"] == "function"
|
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:
|
def test_streaming_tool_call() -> None:
|
||||||
"""Test that tool choice is respected."""
|
"""Test that tool choice is respected."""
|
||||||
llm = ChatGroq()
|
llm = ChatGroq()
|
||||||
@ -302,6 +303,7 @@ def test_streaming_tool_call() -> None:
|
|||||||
assert tool_call["type"] == "function"
|
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:
|
async def test_astreaming_tool_call() -> None:
|
||||||
"""Test that tool choice is respected."""
|
"""Test that tool choice is respected."""
|
||||||
llm = ChatGroq()
|
llm = ChatGroq()
|
||||||
|
Loading…
Reference in New Issue
Block a user