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

default Enterprise model

Open muhssamy opened this issue 3 months ago • 4 comments

Describe the bug

we have set the default enterprise model as MAI-Code-1.1-Flash but while vscode and github desktop is picking it correctly it shows in cli The organization-managed default model "MAI-Code-1.1-Flash" is not available for this account; using the default model instead. then when i pick a model manually it picks it as shown in the screen i have doubt of the casing lower and upper but i need confirmation why it is not working in cli

Image

Affected version

1.0.82

Steps to reproduce the behavior

only start cli in any folder

Expected behavior

it should pick our default model

Additional context

No response

muhssamy avatar Sep 02 '26 04:09 muhssamy

Describe the bug

we have set the default enterprise model as MAI-Code-1.1-Flash but while vscode and github desktop is picking it correctly it shows in cli The organization-managed default model "MAI-Code-1.1-Flash" is not available for this account; using the default model instead. then when i pick a model manually it picks it as shown in the screen i have doubt of the casing lower and upper but i need confirmation why it is not working in cli

Image

Affected version

1.0.82

Steps to reproduce the behavior

only start cli in any folder

Expected behavior

it should pick our default model

Additional context

No response

frshyddsjady-dev avatar Sep 02 '26 04:09 frshyddsjady-dev

ا

frshyddsjady-dev avatar Sep 02 '26 05:09 frshyddsjady-dev

---------- Forwarded message --------- فرستنده: muhssamy @.> ‪Date: چهارشنبه ۲ سپتامبر ۲۰۲۶، ۸:۰۸‬ Subject: [github/copilot-cli] default Enterprise model (Issue #4692) To: github/copilot-cli @.> Cc: Subscribed @.***>

muhssamy created an issue (github/copilot-cli#4692) https://github.com/github/copilot-cli/issues/4692 Describe the bug

we have set the default enterprise model as MAI-Code-1.1-Flash but while vscode and github desktop is picking it correctly it shows in cli The organization-managed default model "MAI-Code-1.1-Flash" is not available for this account; using the default model instead. then when i pick a model manually it picks it as shown in the screen i have doubt of the casing lower and upper but i need confirmation why it is not working in cli Image: Image (view on web) https://github.com/user-attachments/assets/29eaf154-b69a-4984-a0dc-7d7cb69f664d Affected version

1.0.82 Steps to reproduce the behavior

only start cli in any folder Expected behavior

it should pick our default model Additional context

No response

— Reply to this email directly, view it on GitHub https://github.com/github/copilot-cli/issues/4692?email_source=notifications&email_token=BWXPAZ367WUIUMBW2V662DD5M6P3PA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJTGE4TOOBWGY2TDJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L, or unsubscribe https://github.com/notifications/unsubscribe-auth/BWXPAZ55E5BUDONHEFJBLZD5M6P3PAVCNFSNUABFKJSXA33TNF2G64TZHM2TQNJYGYYDMNRUHNEXG43VMU5TKMZRHE3TQNRWGUY2C5QC . You are receiving this because you are subscribed to this thread.Message ID: @.***>

frshyddsjady-dev avatar Sep 02 '26 05:09 frshyddsjady-dev

Your suspicion about the casing is correct.

  • Cause The Copilot API catalog exposes model IDs in lowercase (mai-code-1.1-flash), but CLI startup performs a case-sensitive lookup when validating the org-configured policy string (MAI-Code-1.1-Flash). Because the strings don't match exactly, the CLI treats it as unavailable and falls back to the default model.

  • Fix Update the startup model overlay lookup in the CLI to be case-insensitive

@dereklegenzoff can I go ahead and open PR for the fix

ManthanNimodiya avatar Sep 06 '26 08:09 ManthanNimodiya