Skip to content

Issue using GitHub Copilot MAI-Code-1-Flash: not accessible via the /chat/completions endpoint #34222

Description

@mathomp4

Description

My org admin recently enabled the use of Microsoft MAI-Code-1-Flash for my Copilot Enterprise subscription. However, when I try and use it in OpenCode I get:

model "mai-code-1-flash-picker" is not accessible via the /chat/completions endpoint

So, as another test, I tried the same test ("Summarize the README.md") in copilot-cli after selecting MAI-Code-1-Flash and it worked fine.

Is there perhaps something I need in my opencode.jsonc to tell it how to find the right endpoint?

Plugins

tarquinen/opencode-dcp, slkiser/opencode-quota, opencode-gemini-auth, mohak34/opencode-notifierq

OpenCode version

1.17.11

Steps to reproduce

  1. Have a GitHub Copilot Enterprise subscription
  2. Have the admin enable Microsoft MAI-Code-1-Flash in copilot settings
  3. Open opencode and select MAI-Code-1-Flash under the /model picker for GitHub Copilot
  4. Type "hello"

Screenshot and/or share link

No response

Operating System

macOS 26.5

Terminal

iterm2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions