Use jsonschema to constrain required or specific tool choice (#10550)
This commit is contained in:
1 parent
9c339d6b47
commit
8cc27fdc46
12 files changed
+1558
-50
No files matched your search
@@ -354,7 +354,7 @@ class ServingChatTestCase(unittest.TestCase):
|
||||
{"type": "function", "function": {"name": "get_weather"}},
|
||||
]
|
||||
|
||||
tool_calls, remaining_text, _ = self.chat._process_tool_calls(
|
||||
tool_calls, remaining_text, finish_reason = self.chat._process_tool_calls(
|
||||
text="<|tool_calls_section_begin|>...",
|
||||
tools=tools,
|
||||
finish_reason=finish_reason,
|
||||
|
||||
Reference in new issue
Block a user