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

model change not functional

Open ezechiel203 opened this issue 2 months ago • 4 comments

Describe the bug

Changing model seems to be non functional (I tried to use haiku 4.5, shown Haiku over the prompt bar, but GPT5 shown when calling /usage)

 ✗ Execution failed: missing finish_reason for choice 0

 ● Total usage est:       7 Premium requests
   Total duration (API):  1m 23.2s
   Total duration (wall): 9m 5.5s
   Total code changes:    102 lines added, 0 lines removed
   Usage by model:
       gpt-5                157.5k input, 4.2k output, 0 cache read, 0 cache write (Est. 7 Premium requests)              



                                                                                            claude-haiku-4.5 (0.33x)                                                                       

Affected version

0.0.354 Commit: 076bd172b

Steps to reproduce the behavior

  1. type /model and select Claude Haiku 4.5
  2. prompt requests
  3. call /usage and see which model was used (GPT)

Expected behavior

copilot-cli should show Haiku usage when calling /usage

Additional context

macOS Tahoe, Mac Pro M1.

ezechiel203 avatar Nov 08 '25 23:11 ezechiel203

I tried reproducing this but I couldn't

Welcome to GitHub Copilot CLI
 Version 0.0.354 · Commit 076bd172b

 Copilot can write, test and debug code right from your terminal. Describe a task to get started
 or enter ? for help. Copilot uses AI, check for mistakes.

 ● Logged in with gh as user: niik

 ● Connected to GitHub MCP Server

 > What year is it?
 ● It is 2025. The current date is November 12, 2025.

 ● Total usage est:       1 Premium request
   Total duration (API):  3.5s
   Total duration (wall): 5m 16.3s
   Total code changes:    0 lines added, 0 lines removed
   Usage by model:
       claude-sonnet-4.5    12.5k input, 22 output, 0 cache read, 0 cache write (Est. 1 Premium
   request)

 ● Model changed to: claude-haiku-4.5. The new model will be used for the next conversation.

 > What year is it?

 ● It is 2025. Based on the current timestamp, today is November 12, 2025.

 ● Total usage est:       1.33 Premium requests
   Total duration (API):  5.4s
   Total duration (wall): 5m 36.4s
   Total code changes:    0 lines added, 0 lines removed
   Usage by model:
       claude-sonnet-4.5    12.5k input, 22 output, 0 cache read, 0 cache write (Est. 1 Premium
   request)
       claude-haiku-4.5     12.3k input, 26 output, 0 cache read, 0 cache write (Est. 0.33 Premium
    requests)

 ~                                                                       claude-haiku-4.5 (0.33x)
 ─────────────────────────────────────────────────────────────────────────────────────────────────
 >  Enter @ to mention files or / for commands
 ─────────────────────────────────────────────────────────────────────────────────────────────────
 Ctrl+c Exit · Ctrl+r Expand recent                                  Remaining requests: Unlimited

I see you've got an execution failure in your session log

✗ Execution failed: missing finish_reason for choice 0

Could you try again with a prompt similar to what I used i.e ask one model a simple question and then the same to another model?

niik avatar Nov 12 '25 10:11 niik

Thank you for your issue! Unfortunately, we are unable to reproduce the issue you are experiencing. Please provide more information so we can help you.

Here are some tips for writing reproduction steps:

  • Step by step instructions accompanied by screenshots or screencasts are the best.
  • Be as specific as possible; include as much detail as you can.
  • If not already provided, include:
    • the version of Copilot CLI you are using.
    • the operating system you are using
    • any environment factors you can think of.
    • any custom configuration you are using.
    • a log file from the day you experienced the issue (find log files via ~/.copilot/logs.
  • If relevant and can be shared, provide the repository or code you are using.
  • If relevant and can be shared, provide the session files (find session files via ~/.copilot/history-session-state).

Note: This is a public repository. Please do not include any sensitive or private information in your issue.

github-actions[bot] avatar Nov 12 '25 10:11 github-actions[bot]

Using Gihub copilot cli.

Also tried changing model. It only shows Haiku for a trial subscription on pro.

"Some models are not available due to configured policy."

Update: Got it working by enabling more models in the copilot settings in github. But I already had enabled some models that I could not choose in the cli..

danieldybsland avatar Nov 19 '25 15:11 danieldybsland

I had to manually enable models in https://github.com/settings/copilot/features in order to see more/all models I previously had access to.

srolandmarshall avatar Nov 20 '25 05:11 srolandmarshall