Skip to content

Commit

Permalink
🐛 Bug: Fix the bug in the error_triggers condition judgment.
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Nov 25, 2024
1 parent 5f00224 commit cc42a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ async def error_handling_wrapper(generator, channel_id, engine, stream, error_tr
if first_item_str.startswith("[DONE]"):
logger.error(f"provider: {channel_id:<11} error_handling_wrapper [DONE]!")
raise StopAsyncIteration
if all(x not in first_item_str for x in error_triggers):
if any(x in first_item_str for x in error_triggers):
logger.error(f"provider: {channel_id:<11} error const string: %s", first_item_str)
raise StopAsyncIteration
try:
Expand Down

0 comments on commit cc42a70

Please sign in to comment.