mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fix special instruction bug
This commit is contained in:
parent
d179982949
commit
0166834ce4
1 changed files with 5 additions and 3 deletions
|
|
@ -34,14 +34,16 @@ def get_mle_task_id(dataset_dir):
|
|||
return dataset_dir.split("/")[-3]
|
||||
|
||||
|
||||
def get_mle_bench_requirements(dataset_dir, data_config, obfuscated=False, special_instruction=""):
|
||||
def get_mle_bench_requirements(dataset_dir, data_config, special_instruction, obfuscated=False):
|
||||
work_dir = data_config["work_dir"]
|
||||
task = get_mle_task_id(dataset_dir)
|
||||
output_dir = f"{work_dir}/{task}"
|
||||
final_output_dir = f"{work_dir}/submission"
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
special_instruction = SPECIAL_INSTRUCTIONS[special_instruction]
|
||||
|
||||
if special_instruction:
|
||||
special_instruction = SPECIAL_INSTRUCTIONS[special_instruction]
|
||||
else:
|
||||
special_instruction = ""
|
||||
if obfuscated:
|
||||
instructions = INSTRUCTIONS_OBFUSCATED.format(dataset_dir=dataset_dir, output_dir=final_output_dir)
|
||||
task_file = "description_obfuscated.md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue