Skip to content

GitHub Copilot Regression on non-premium models #739

Closed

Description

@danriedl

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

Activity

  1. self-assigned this
    on Jul 7, 2025
  2. drewbitt commented on Jul 7, 2025

    @drewbitt

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

  3. danriedl commented on Jul 7, 2025

    @danriedl
    Author

    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
    
    
  4. danriedl commented on Jul 8, 2025

    @danriedl
    Author

    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"
          ]
        }
      }
  5. svanharmelen commented on Jul 21, 2025

    @svanharmelen

    Any update, solution or workaround for this issue?

  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions