-
Notifications
You must be signed in to change notification settings - Fork 757
Open
Labels
Description
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
- copilot --model gpt-5 --allow-all-tools
- Paste the prompt: Read the
.mdfiles and perform translation processing. - 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
- session-cf12238d-99df-4a27-b87b-6406ddd7bb97.log
- Windows WSL (Ubuntu 22)
- Intel Core i7 1265U
- Windows Terminal
- bash