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

Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

Open liangweihuang opened this issue 1 year ago • 9 comments

Describe the bug

The frequent occurrence of 'Model call failed' errors is annoying

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

× Model call failed: {"message":"rate limit exceeded","code":"rate_limited"}

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

Affected version

0.0.328 Commit: 3755a93

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

liangweihuang avatar Sep 30 '25 08:09 liangweihuang

I also having this problem as well

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

 × Model call failed: {"message":"prompt token count of 184791 exceeds the limit of
   128000","code":"model_max_prompt_tokens_exceeded"}

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

T-450 avatar Sep 30 '25 12:09 T-450

Also having this problem - and it's spending my request allowance when it does this as well.

markcharlesobrien avatar Sep 30 '25 19:09 markcharlesobrien

The same here.

pabrojast avatar Oct 01 '25 11:10 pabrojast

My claude4.5 model disappeared and only gpt-5 is allowed

scarletkc avatar Oct 01 '25 12:10 scarletkc

Same for me. GPT-5 model is being rate-limited and the overall session fails

Image

iCubeDm avatar Oct 06 '25 14:10 iCubeDm

I'm experiencing the same issue. I have Premium Request credits available, but it seems I've reached the rate limit. In the latest Copilot, “xx% to truncation” now appears in the bottom right corner. Is this display or the rate limit behavior documented anywhere?

Image

MasayukiOzawa avatar Oct 06 '25 21:10 MasayukiOzawa

Same here. gpt5 is unusable in copilot cli

lukaszsamson avatar Oct 07 '25 09:10 lukaszsamson

Its because of copilot modes and instructions. After removing all of them it worked.

T-450 avatar Oct 17 '25 03:10 T-450

The retry banner noise reported here has been cleaned up. Starting with v0.0.389, rate limit errors include a user-friendly message with retry timing, and as of v1.0.17 the repeated "Model call failed" lines during retries are suppressed -- you should now see at most one clear error message instead of the same line repeated for each retry attempt. If you're still seeing this on a current version, please feel free to reopen this issue.

examon avatar Apr 06 '26 19:04 examon