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

Method test_split_reasoning

backend/python/mlx/test.py:315–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

313 self.assertEqual(out[2]["name"], "f")
314
315 def test_split_reasoning(self):
316 r, c = split_reasoning("<think>step 1\nstep 2</think>The answer is 42.", "<think>", "</think>")
317 self.assertEqual(r, "step 1\nstep 2")
318 self.assertEqual(c, "The answer is 42.")
319
320 def test_split_reasoning_no_marker(self):
321 r, c = split_reasoning("just text", "<think>", "</think>")

Callers

nothing calls this directly

Calls 1

split_reasoningFunction · 0.90

Tested by

no test coverage detected