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

The requested model is not supported

Open tangbing opened this issue 2 months ago • 4 comments

Describe the bug

 ╭────────────────────────────────────────────────────────────────────────────╮
 │ > /model                                                                   │
 ╰────────────────────────────────────────────────────────────────────────────╯

 × Model call failed: {"message":"The requested model is not supported.","code"
   :"model_not_supported","param":"model","type":"invalid_request_error"}t pr

Affected version

0.0.328 Commit: 3755a93

Steps to reproduce the behavior

  1. logined copliot proc account ,
  2. input /model, see × Execution failed: Failed to get response from the AI model; retried 5 times (total retry wait time: 87.15969161928932 seconds)

Expected behavior

No response

Additional context

Image Image

tangbing avatar Oct 28 '25 01:10 tangbing

Your Copilot CLI version is probably too old. Try upgrading to latest with:

npm install -g @github/copilot@latest

And see if it still triggers an error.

Edit: Oh wait, it's probably because you added a at the end of your command, just use /model alone and it should show the list of available models that can you navigate with arrows.

0xHarlan avatar Oct 28 '25 10:10 0xHarlan

Firstly, thank you for helping a fellow community member, @0xHarlan! 🚀

There was a minor improvement released yesterday in 0.0.352 to provide a more helpful error message when trying to use an invalid or unavailable model. However, I wonder if there is something else going on here 🤔

@tangbing : I would appreciate if you could share any additional info from ~/.copilot/logs for this session. 🤔

andyfeller avatar Oct 28 '25 17:10 andyfeller

Firstly, thank you for helping a fellow community member, @0xHarlan! 🚀

There was a minor improvement released yesterday in 0.0.352 to provide a more helpful error message when trying to use an invalid or unavailable model. However, I wonder if there is something else going on here 🤔

@tangbing : I would appreciate if you could share any additional info from ~/.copilot/logs for this session. 🤔

I'm happy to help you, if you need anything else, you can contact me. d3900721-4c78-4b26-a54f-43fd4d1a3a8d.log

tangbing avatar Oct 29 '25 01:10 tangbing

I encountered the same problem today, without any changes made to my VSCode and Cline extension. Actually, the built-in "Chat" module in VSCode works fine while this problem occurred. I'm quite confused with this problem. Is there any progress upon this issue?

tumine avatar Nov 03 '25 09:11 tumine

I encountered the same problem today, without any changes made to my VSCode and Cline extension. Actually, the built-in "Chat" module in VSCode works fine while this problem occurred. I'm quite confused with this problem. Is there any progress upon this issue?

Same issue here, Copilot chat works without issue but the CLI Agent throws errors no matter what model I choose.

zaynesember avatar Dec 02 '25 15:12 zaynesember