GitHub Copilot Regression on non-premium models #533

Closed
opened 2026-02-16 17:27:12 -05:00 by yindo · 5 comments
Owner

Originally created by @danriedl on GitHub (Jul 7, 2025).

Originally assigned to: @thdxr on GitHub.

I upgraded opencode to its newest release 0.1.194.
Seems like either a regression happened or the API changed, because only the premium-models (e.g. github-copilot/claude-3.7-sonnet) are working:
https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/copilot-billing/understanding-and-managing-requests-in-copilot#model-multipliers

GPT-4.1 and GPT-4o only return with:
AI_APICallError: Bad Request

Originally created by @danriedl on GitHub (Jul 7, 2025). Originally assigned to: @thdxr on GitHub. I upgraded `opencode` to its newest release `0.1.194`. Seems like either a regression happened or the API changed, because only the premium-models (e.g. `github-copilot/claude-3.7-sonnet`) are working: https://docs.github.com/en/enterprise-cloud@latest/copilot/concepts/copilot-billing/understanding-and-managing-requests-in-copilot#model-multipliers GPT-4.1 and GPT-4o only return with: `AI_APICallError: Bad Request`
yindo closed this issue 2026-02-16 17:27:12 -05:00
Author
Owner

@drewbitt commented on GitHub (Jul 7, 2025):

4.1 and 4o through Copilot are working for me. Did you experience an outage before?

@drewbitt commented on GitHub (Jul 7, 2025): 4.1 and 4o through Copilot are working for me. Did you experience an outage before?
Author
Owner

@danriedl commented on GitHub (Jul 7, 2025):

No - also hard to debug right now, as the other models work: So it is not network, login, client-related.
By starting a new session and just writing hi the session name is called "Greeting", so there is a communication, but it's a AI_APICallError: Bad Request.

Here is my log, not showing anything:

❯ opencode --print-logs .
INFO  2025-07-07T16:28:29 +21ms service=default version=0.1.194 args=--print-logs,. opencode
INFO  2025-07-07T16:28:29 +0ms service=app cwd=/Users/dan/tmp creating
INFO  2025-07-07T16:28:29 +2ms service=app git
INFO  2025-07-07T16:28:29 +2ms service=bus type=storage.write subscribing
INFO  2025-07-07T16:28:29 +0ms service=app name=bus registering service
INFO  2025-07-07T16:28:29 +0ms service=format init
INFO  2025-07-07T16:28:29 +0ms service=bus type=file.edited subscribing
INFO  2025-07-07T16:28:29 +0ms service=config.hooks init
INFO  2025-07-07T16:28:29 +0ms service=bus type=file.edited subscribing
INFO  2025-07-07T16:28:29 +0ms service=bus type=session.idle subscribing
INFO  2025-07-07T16:28:29 +0ms service=app name=lsp registering service
INFO  2025-07-07T16:28:29 +0ms service=lsp initializing
INFO  2025-07-07T16:28:29 +0ms service=app name=file.watcher registering service
INFO  2025-07-07T16:28:29 +3ms service=app name=provider registering service
INFO  2025-07-07T16:28:29 +1ms service=app name=config registering service
INFO  2025-07-07T16:28:29 +2ms service=config $schema=http://json-schema.org/draft-07/schema# provider=[object Object] mcp=[object Object] loaded
INFO  2025-07-07T16:28:29 +1ms service=models.dev refreshing
INFO  2025-07-07T16:28:29 +0ms service=provider init
INFO  2025-07-07T16:28:29 +2ms service=provider providerID=github-copilot found
INFO  2025-07-07T16:28:29 +0ms service=provider providerID=ollama found
INFO  2025-07-07T16:28:29 +3ms service=default cmd=/Users/dan/.cache/opencode/tui/tui-8q2z0spb. tui
INFO  2025-07-07T16:28:29 +23ms service=server method=GET path=/config request
INFO  2025-07-07T16:28:29 +1ms service=server duration=1 response
INFO  2025-07-07T16:28:29 +3ms service=server method=GET path=/file/status request
INFO  2025-07-07T16:28:29 +1ms service=server duration=1 response
INFO  2025-07-07T16:28:29 +0ms service=server method=GET path=/event request
INFO  2025-07-07T16:28:29 +0ms service=server event connected
INFO  2025-07-07T16:28:29 +1ms service=bus type=* subscribing
INFO  2025-07-07T16:28:29 +0ms service=server duration=1 response
INFO  2025-07-07T16:28:29 +2ms service=server method=GET path=/config/providers request
INFO  2025-07-07T16:28:29 +0ms service=server duration=0 response
INFO  2025-07-07T16:28:43 +5589ms service=bus type=* unsubscribing
INFO  2025-07-07T16:28:43 +0ms service=server event disconnected
INFO  2025-07-07T16:28:43 +2ms service=app name=lsp shutdown
INFO  2025-07-07T16:28:43 +0ms service=app name=file.watcher shutdown
INFO  2025-07-07T16:28:43 +0ms service=app name=session shutdown
INFO  2025-07-07T16:28:43 +0ms service=app name=mcp shutdown

@danriedl commented on GitHub (Jul 7, 2025): No - also hard to debug right now, as the other models work: So it is not network, login, client-related. By starting a new session and just writing `hi` the session name is called "Greeting", so there is a communication, but it's a `AI_APICallError: Bad Request`. Here is my log, not showing anything: ``` ❯ opencode --print-logs . INFO 2025-07-07T16:28:29 +21ms service=default version=0.1.194 args=--print-logs,. opencode INFO 2025-07-07T16:28:29 +0ms service=app cwd=/Users/dan/tmp creating INFO 2025-07-07T16:28:29 +2ms service=app git INFO 2025-07-07T16:28:29 +2ms service=bus type=storage.write subscribing INFO 2025-07-07T16:28:29 +0ms service=app name=bus registering service INFO 2025-07-07T16:28:29 +0ms service=format init INFO 2025-07-07T16:28:29 +0ms service=bus type=file.edited subscribing INFO 2025-07-07T16:28:29 +0ms service=config.hooks init INFO 2025-07-07T16:28:29 +0ms service=bus type=file.edited subscribing INFO 2025-07-07T16:28:29 +0ms service=bus type=session.idle subscribing INFO 2025-07-07T16:28:29 +0ms service=app name=lsp registering service INFO 2025-07-07T16:28:29 +0ms service=lsp initializing INFO 2025-07-07T16:28:29 +0ms service=app name=file.watcher registering service INFO 2025-07-07T16:28:29 +3ms service=app name=provider registering service INFO 2025-07-07T16:28:29 +1ms service=app name=config registering service INFO 2025-07-07T16:28:29 +2ms service=config $schema=http://json-schema.org/draft-07/schema# provider=[object Object] mcp=[object Object] loaded INFO 2025-07-07T16:28:29 +1ms service=models.dev refreshing INFO 2025-07-07T16:28:29 +0ms service=provider init INFO 2025-07-07T16:28:29 +2ms service=provider providerID=github-copilot found INFO 2025-07-07T16:28:29 +0ms service=provider providerID=ollama found INFO 2025-07-07T16:28:29 +3ms service=default cmd=/Users/dan/.cache/opencode/tui/tui-8q2z0spb. tui INFO 2025-07-07T16:28:29 +23ms service=server method=GET path=/config request INFO 2025-07-07T16:28:29 +1ms service=server duration=1 response INFO 2025-07-07T16:28:29 +3ms service=server method=GET path=/file/status request INFO 2025-07-07T16:28:29 +1ms service=server duration=1 response INFO 2025-07-07T16:28:29 +0ms service=server method=GET path=/event request INFO 2025-07-07T16:28:29 +0ms service=server event connected INFO 2025-07-07T16:28:29 +1ms service=bus type=* subscribing INFO 2025-07-07T16:28:29 +0ms service=server duration=1 response INFO 2025-07-07T16:28:29 +2ms service=server method=GET path=/config/providers request INFO 2025-07-07T16:28:29 +0ms service=server duration=0 response INFO 2025-07-07T16:28:43 +5589ms service=bus type=* unsubscribing INFO 2025-07-07T16:28:43 +0ms service=server event disconnected INFO 2025-07-07T16:28:43 +2ms service=app name=lsp shutdown INFO 2025-07-07T16:28:43 +0ms service=app name=file.watcher shutdown INFO 2025-07-07T16:28:43 +0ms service=app name=session shutdown INFO 2025-07-07T16:28:43 +0ms service=app name=mcp shutdown ```
Author
Owner

@danriedl commented on GitHub (Jul 8, 2025):

So here is a update after hours of debugging:
The premium models work with the latest release of sooperset/mcp-atlassian with version v0.11.9:

But when using Models GPT-4o or GPT-4.1 i have to downgrade the server to v0.11.2

So the error AI_APICallError: Bad Request origins of a problem between opencode and the mcp server.

"mcp": {
    "mcp-atlassian": {
      "enabled": true,
      "type": "local",
      "command": [
        "podman", "run", "--rm", "-i",
        "-e", "CONFLUENCE_URL=redacted",
        "-e", "CONFLUENCE_PERSONAL_TOKEN=redacted",
        "-e", "CONFLUENCE_SSL_VERIFY=false",
        "-e", "JIRA_URL=redacted",
        "-e", "JIRA_PERSONAL_TOKEN=redacted",
        "-e", "JIRA_SSL_VERIFY=false",
        "ghcr.io/sooperset/mcp-atlassian:0.11.2"
      ]
    }
  }
@danriedl commented on GitHub (Jul 8, 2025): So here is a update after hours of debugging: The premium models work with the latest release of `sooperset/mcp-atlassian` with version [v0.11.9](https://github.com/sooperset/mcp-atlassian/releases/tag/v0.11.9): But when using Models `GPT-4o` or `GPT-4.1` i have to downgrade the server to [v0.11.2](https://github.com/sooperset/mcp-atlassian/releases/tag/v0.11.2) So the error `AI_APICallError: Bad Request` origins of a problem between opencode and the mcp server. ```json "mcp": { "mcp-atlassian": { "enabled": true, "type": "local", "command": [ "podman", "run", "--rm", "-i", "-e", "CONFLUENCE_URL=redacted", "-e", "CONFLUENCE_PERSONAL_TOKEN=redacted", "-e", "CONFLUENCE_SSL_VERIFY=false", "-e", "JIRA_URL=redacted", "-e", "JIRA_PERSONAL_TOKEN=redacted", "-e", "JIRA_SSL_VERIFY=false", "ghcr.io/sooperset/mcp-atlassian:0.11.2" ] } } ```
Author
Owner

@svanharmelen commented on GitHub (Jul 21, 2025):

Any update, solution or workaround for this issue?

@svanharmelen commented on GitHub (Jul 21, 2025): Any update, solution or workaround for this issue?
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#533