Doriandarko / claude-engineer

Claude Engineer is an interactive command-line interface (CLI) that leverages the power of Anthropic's Claude-3.5-Sonnet model to assist with software development tasks. This tool combines the capabilities of a large language model with practical file system operations and web search functionality.
9.2k stars 981 forks source link

invalid_request_error: 'Your API request included an `assistant` message in the final position, which would pre-fill the `assistant` response. When using tools, pre-filling the `assistant` response is not supported.' #40

Closed novaware-io closed 3 months ago

novaware-io commented 3 months ago

Hello, I'm testing the software and I'm getting a lot of these errors:

You: Error calling Claude API: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Your API request included an `assistant` message in the final position, which would pre-fill the `assistant` response. When using tools, pre-filling the `assistant` response is not supported.'}}
I'm sorry, there was an error communicating with the AI. Please try again.

Paid account

Dem

benadamdev commented 3 months ago

I had the same error.

ophoria commented 3 months ago

+1, paid.

Feed-dev commented 3 months ago

I came here for the same error.

Doriandarko commented 3 months ago

this is fixed in the latest version now!