L2MAC icon indicating copy to clipboard operation
L2MAC copied to clipboard

Examples work, custom prompt for code base generation generate OpenAI Error 400

Open MorenoLabs opened this issue 1 year ago • 3 comments

Super curious about L2MAC, have been testing the examples from quickstart but other basic requests e.g.

l2mac "create a eda app for csv file" (and other basic ones) throw ultimately after 2-3 steps the following error:

MainProcess| 2024-06-16 10:23:10,726,726 multiprocessing INFO [L2MAC][OpenAI API Request Error] <class 'openai.BadRequestError'> ('Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_5NeB7YpcWw1zVdRgPjozrX0s", 'type': 'invalid_request_error', 'param': 'messages.[5].role', 'code': None}}',) | num_retries: 0 / 10

it keeps retrying but same error.

Any idea how to mitigate that? Researching this got no results.

Thanks for your support!

MorenoLabs avatar Jun 16 '24 02:06 MorenoLabs