MCPcopy Index your code
hub / github.com/mudler/LocalAI / test_split_reasoning

Method test_split_reasoning

backend/python/mlx-vlm/test.py:181–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

179 self.assertEqual(out[2]["tool_call_id"], "call_1")
180
181 def test_split_reasoning(self):
182 r, c = split_reasoning("<think>plan</think>final", "<think>", "</think>")
183 self.assertEqual(r, "plan")
184 self.assertEqual(c, "final")
185
186 def test_parse_tool_calls_with_shim(self):
187 tm = types.SimpleNamespace(

Callers

nothing calls this directly

Calls 1

split_reasoningFunction · 0.90

Tested by

no test coverage detected