refactor(chinese-instruct): 修改 process_func 函数返回值格式

This commit is contained in:
2025-07-21 11:27:36 +08:00
parent 1b49bfdea6
commit 127e7c8229
+1 -1
View File
@@ -12,7 +12,7 @@ def build_prompt(query, response) -> str:
def process_func(input_dict: dict): def process_func(input_dict: dict):
query = input_dict["prompt"] query = input_dict["prompt"]
response = input_dict["response"] response = input_dict["response"]
return build_prompt(query, response) return {"text": build_prompt(query, response)}
if __name__ == "__main__": if __name__ == "__main__":