Skip to content

Commit

Permalink
models: better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
miltondp committed Jan 5, 2023
1 parent c45d0a5 commit 473c764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/manubot/ai_editor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def revise_paragraph(self, paragraph_text, section_name):
# if the error message suggests to sample again, let's do that
if "Please sample again" in error_message:
pass
elif "server is overloaded" in error_message:
elif "overloaded" in error_message:
time.sleep(5)
else:
# if the error mesaage suggests to reduce the number of tokens,
Expand Down

0 comments on commit 473c764

Please sign in to comment.