copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Model call failed: {"message":"Invalid 'messages[21].tool_calls': array too long. Expected an array with maximum length 128, but got an array with length 131 instead.

Open hypntzed78 opened this issue 1 month ago • 0 comments

Describe the bug

request: Check for env vars obtained with os.getenv() in config.py that do not already exist in the .env.example file, then add to .env.example with the default value from config.py

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 77CE:1ED574:486654:5C7E04:6927BD36)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 77DA:1F6E06:4509FA:592E68:6927BD3D)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 9D32:9825:E5BD15:11C9983:6927BD47)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: DDD0:233BC:D6525A:10D84E9:6927BD52)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: EBC2:24E96A:DC7C64:1137A30:6927BD61)

✘ Model call failed: {"message":"Invalid 'messages[21].tool_calls':
array too long. Expected an array with maximum length 128, but got an array with length 131 instead.","code":"invalid_request_body"}
(Request ID: 905C:A2069:DA79F9:111A2D8:6927BD7C)

✘ Execution failed: Failed to get response from the AI model; retried 5 times (total retry wait time: 98.48922082639119 seconds)

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

hypntzed78 avatar Nov 27 '25 02:11 hypntzed78