feat(frontend): 实现了固定参数的注入
This commit is contained in:
parent
d827f9758f
commit
9fc3ab904b
@ -113,12 +113,13 @@ def dataset_generate_page():
|
|||||||
var_value = row['变量值'].strip()
|
var_value = row['变量值'].strip()
|
||||||
if var_name:
|
if var_name:
|
||||||
variables_dict[var_name] = var_value
|
variables_dict[var_name] = var_value
|
||||||
|
|
||||||
|
# 注入除document_slice以外的所有参数
|
||||||
|
prompt = prompt.partial(**variables_dict)
|
||||||
|
|
||||||
print(doc)
|
print(doc)
|
||||||
print(prompt_content)
|
print(prompt.format(document_slice="test"))
|
||||||
|
print(variables_dict)
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
total_steps = rounds
|
total_steps = rounds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user