Skip to content

Continually receiving "Model call failed" error message #652

@kkbruce

Description

@kkbruce

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:modelsModel selection, availability, switching, rate limits, and model-specific behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions