fix(context-limit-retry): don't retry when context limit reached

This commit is contained in:
sharath 2025-06-05 06:46:27 +00:00
parent 6c436d9f75
commit eda0c69bea
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -418,6 +418,7 @@ Here are the XML tools available with examples:
logger.error(f"Error in run_thread: {str(e)}", exc_info=True) logger.error(f"Error in run_thread: {str(e)}", exc_info=True)
# Return the error as a dict to be handled by the caller # Return the error as a dict to be handled by the caller
return { return {
"type": "status",
"status": "error", "status": "error",
"message": str(e) "message": str(e)
} }