You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whileresults[0]['status'] =='error'andrepair_attempts==0: # only try once
452
+
whileresults[0]['status'] =='error'andrepair_attempts<max_repair_attempts: # try up to n times
451
453
error_message=results[0]['content']
452
454
new_instruction=f"We run into the following problem executing the code, please fix it:\n\n{error_message}\n\nPlease think step by step, reflect why the error happens and fix the code so that no more errors would occur."
whileresults[0]['status'] =='error'andrepair_attempts==0: # only try once
499
+
whileresults[0]['status'] =='error'andrepair_attempts<max_repair_attempts: # only try once
495
500
error_message=results[0]['content']
496
501
new_instruction=f"We run into the following problem executing the code, please fix it:\n\n{error_message}\n\nPlease think step by step, reflect why the error happens and fix the code so that no more errors would occur."
Higher values <spanstyle={{fontStyle: 'italic'}}>might</span> increase chances of success but may take longer. Repair time is considered as part of the formulate timeout.
"value": "Data formulation timed out after 30 seconds. Please try again.",
657
+
"value": `Data formulation timed out after ${config.formulateTimeoutSeconds} seconds. Consider breaking down the task, using a different model or prompt, or increasing the timeout limit.`,
@@ -386,7 +390,7 @@ export const EncodingShelfThread: FC<EncodingShelfThreadProps> = function ({ cha
386
390
dispatch(dfActions.addMessages({
387
391
"timestamp": Date.now(),
388
392
"type": "error",
389
-
"value": "Data formulation timed out after 30 seconds. Please try again.",
393
+
"value": `Data formulation timed out after ${config.formulateTimeoutSeconds} seconds. Consider breaking down the task, using a different model or prompt, or increasing the timeout limit.`,
0 commit comments