OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Add "stop/cancel" button

Open Kapowpenguin1 opened this issue 1 year ago • 7 comments

while using claude, it sometimes gives a "rate limit" error, and spits out a ton of these messages in the chat. maybe the user could pause the chat, or the system could timeout whenever it detects such an error?

the error, for reference: Oops. Something went wrong: Error condensing thoughts: AnthropicException - {"type":"error","error":{"type":"rate_limit_error","message":"Number of request tokens has exceeded your rate limit (https://docs.anthropic.com/claude/reference/rate-limits). Please reduce the the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}}

Kapowpenguin1 avatar Mar 31 '24 22:03 Kapowpenguin1

See also: https://github.com/OpenDevin/OpenDevin/issues/332

rbren avatar Apr 01 '24 02:04 rbren

I think a good solution here is to give the user the ability to stop/cancel the current task

rbren avatar Apr 01 '24 02:04 rbren

An option to authorize the next steps or provide input on them would be amazing.

robshox avatar Apr 01 '24 10:04 robshox

How about defining a parameter in config.toml to throttle requests per minute?

marikan114 avatar Apr 01 '24 12:04 marikan114

Oh good point @robshox, would be nice to do 10 iterations, then have the option to continue

rbren avatar Apr 01 '24 14:04 rbren

@marikan114 that would be helpful!

rbren avatar Apr 01 '24 14:04 rbren

Related: https://github.com/OpenDevin/OpenDevin/issues/1049

rbren avatar Apr 12 '24 11:04 rbren