Skip to content

Commit 9e8ff17

Browse files
authored
change only model codes in model coder (microsoft#707)
1 parent a52539c commit 9e8ff17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rdagent/components/coder/data_science/model/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def implement_one_task(
8787
)
8888
)
8989

90+
if not all(i.startswith("model_") for i in batch_edit.keys()):
91+
user_prompt += "\nYou should only update model codes!"
92+
continue
93+
9094
# 3. post process to align file name to the task name
9195
# we assumpt batch_edit only contains one model file update.
9296
batch_edit = {

0 commit comments

Comments
 (0)