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

Continually receiving "Model call failed" error message

Open kkbruce opened this issue 1 month ago • 2 comments

Describe the bug

I tried to ask Copilot CLI to read and process the local .md files, but kept encountering the following error:

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FD3EB:50B61C:69250938)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FE542:50CB7E:69250939)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FF5CF:50E03B:69250941)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:400A12:50F956:69250949)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:4024E5:511AF2:69250952)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 737E:346E92:B21D0D:D8D5FC:69250971)

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

Affected version

0.0.363

Steps to reproduce the behavior

  1. copilot --model gpt-5 --allow-all-tools
  2. Paste the prompt: Read the .md files and perform translation processing.
  3. kept encountering the following error:
 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FD3EB:50B61C:69250938)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FE542:50CB7E:69250939)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:3FF5CF:50E03B:69250941)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:400A12:50F956:69250949)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 6D98:99DAE:4024E5:511AF2:69250952)

 ✘ Model call failed: {"message":"Invalid 'input[1].content': array too long. Expected an array with maximum length 0, but got an
   array with length 1 instead.","code":"invalid_request_body"} (Request ID: 737E:346E92:B21D0D:D8D5FC:69250971)

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

Expected behavior

Read the .md files and perform translation processing.

Additional context

kkbruce avatar Nov 25 '25 02:11 kkbruce

Just want to add to this, I got this error, but I just uninstalled copilot, upgraded both npm and node, then reinstalled it...

buengx avatar Nov 26 '25 04:11 buengx

I get this error a lot and I have not been able to track down why.

Using GPT-5.1 for thinking, GPT-5.1-codex for implementation.

Edit: This appears to happen when switching models mid-session.

AlexanderJohnston avatar Dec 01 '25 18:12 AlexanderJohnston

I had this issue with 0.0.362, upgraded to 0.0.365 and so far it looks better than it did before. Yes, 0.0.366 is already out, but not yet available on https://search.nixos.org/.

Yes, I use Nix BTW ^(on top of Debian).

hackermandh avatar Dec 04 '25 11:12 hackermandh