Skip to content

Commit

Permalink
Clean error messages (lm-sys#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored and zhanghao.smooth committed Jan 26, 2024
1 parent 077aa66 commit 4ce4ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastchat/serve/monitor/clean_battle_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"llama",
"NETWORK ERROR DUE TO HIGH TRAFFIC. PLEASE REGENERATE OR REFRESH THIS PAGE.",
"$MODERATION$ YOUR INPUT VIOLATES OUR CONTENT MODERATION GUIDELINES.",
"API REQUEST ERROR. Please increase the number of max tokens.",
"**API REQUEST ERROR** Reason: The response was blocked.",
]

for i in range(len(IDENTITY_WORDS)):
Expand All @@ -45,7 +47,7 @@

def get_log_files(max_num_files=None):
dates = []
for month in range(4, 12):
for month in range(4, 13):
for day in range(1, 33):
dates.append(f"2023-{month:02d}-{day:02d}")

Expand Down

0 comments on commit 4ce4ebd

Please sign in to comment.