Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[computer use] stuck with BadRequestError #134

Open
ronnyli opened this issue Oct 29, 2024 · 1 comment
Open

[computer use] stuck with BadRequestError #134

ronnyli opened this issue Oct 29, 2024 · 1 comment

Comments

@ronnyli
Copy link

ronnyli commented Oct 29, 2024

Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'messages.32: Did not find 2 tool_result block(s) at the beginning of this message. Messages following tool_use blocks must begin with a matching number of tool_result blocks.'}}

Here is message 32

{"role":"user","content":[{"type":"text","text":"Click on the phone number field","cache_control":{"type":"ephemeral"}}]}

Is there a way for me to edit the messages to remove the bad entry before sending?

@p-i-
Copy link

p-i- commented Oct 29, 2024

This is a duplicate of #121 although your title is arguably better as it addresses the root rather than the trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@p-i- @ronnyli and others