feat(frontend): 实现了固定参数的注入

This commit is contained in:
carry 2025-04-19 17:48:45 +08:00
parent d827f9758f
commit 9fc3ab904b

View File

@ -114,11 +114,12 @@ def dataset_generate_page():
if var_name:
variables_dict[var_name] = var_value
# 注入除document_slice以外的所有参数
prompt = prompt.partial(**variables_dict)
print(doc)
print(prompt_content)
print(prompt.format(document_slice="test"))
print(variables_dict)
import time
total_steps = rounds