[Optimization]Merge Text processor (#7030)

* merge text processor

* update

* fix unit test

* merge messages2ids

* fix unit test

* 删除重复代码

* remove redundant code

* delete code

* fix unit test
This commit is contained in:
luukunn
2026-03-30 15:02:35 +08:00
committed by GitHub
parent 1670b011a5
commit b9f8873367
11 changed files with 765 additions and 1072 deletions
+1 -2
View File
@@ -116,8 +116,7 @@ class TestErnie4_5ProcessorProcessResponseDictStreaming(unittest.TestCase):
}
kwargs = {"enable_thinking": True}
with patch("fastdeploy.input.ernie4_5_processor.data_processor_logger"):
result = self.processor.process_response_dict_normal(response_dict, **kwargs)
result = self.processor.process_response_dict_normal(response_dict, **kwargs)
self.mock_reasoning_parser.extract_reasoning_content.assert_called_once()
self.assertEqual(result["outputs"]["reasoning_content"], "Mock reasoning content")