mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-19 05:58:58 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -258,7 +258,7 @@ class TestGptOssModelCompatibility:
|
||||
llm_with_tools = llm.bind_tools([get_weather])
|
||||
|
||||
# Verify tools are in Harmony format
|
||||
tools = llm_with_tools.kwargs["tools"]
|
||||
tools = llm_with_tools.kwargs["tools"] # type: ignore[attr-defined]
|
||||
assert len(tools) == 1
|
||||
tool = tools[0]
|
||||
assert tool["type"] == "function"
|
||||
@@ -358,3 +358,4 @@ class TestGptOssErrorHandling:
|
||||
# Should have no tool calls
|
||||
assert not response.tool_calls or len(response.tool_calls) == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user