mirror of https://github.com/kortix-ai/suna.git
fix(context-limit-retry): don't retry when context limit reached
This commit is contained in:
parent
6c436d9f75
commit
eda0c69bea
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue