Skip to content

Commit 77932a1

Browse files
authored
Use conv.update_last_message api in mt-bench answer generation (#2647)
1 parent 5d453e4 commit 77932a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastchat/llm_judge/gen_model_answer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def get_model_answers(
157157
print("ERROR question ID: ", question["question_id"])
158158
output = "ERROR"
159159

160+
conv.update_last_message(output)
160161
turns.append(output)
161-
conv.messages[-1][-1] = output
162162

163163
choices.append({"index": i, "turns": turns})
164164

0 commit comments

Comments
 (0)