Skip to content

v1.17.7: GitHub Copilot API missing X-GitHub-Api-Version header — GPT-5.5 and latest models not shown #32627

Closed as not planned

Description

@jhlim0714

Summary

v1.17.7 does not send the X-GitHub-Api-Version header when calling the GitHub Copilot /models endpoint. As a result, the API returns only legacy models (20 models), omitting GPT-5.5, GPT-5.4, Claude Opus 4.7, Claude Sonnet 4.6, etc.

Impact

  • Model selector (TUI and /model command) only shows old models (claude-opus-4.5, gpt-4o, etc.)
  • GPT-5.5, GPT-5.4, Claude Opus 4.7, Claude Sonnet 4.6 are missing
  • Users cannot select the latest premium models

Root Cause

GitHub Copilot API now requires the X-GitHub-Api-Version header to return the full model list:

API Call Models Returned
Without X-GitHub-Api-Version header 20 models (legacy)
With X-GitHub-Api-Version: 2024-12-15 30 models (includes GPT-5.5, etc.)

Evidence

# Without header — only legacy models
curl -s -H "Authorization: Bearer $TOKEN" \
  "https://api.githubcopilot.com/models" | jq '.data | length'
# Returns: 20

# With header — full model list
curl -s -H "Authorization: Bearer $TOKEN" \
  -H "X-GitHub-Api-Version: 2024-12-15" \
  "https://api.githubcopilot.com/models" | jq '.data | length'
# Returns: 30

Workaround

Downgrade to v1.17.6:

opencode upgrade 1.17.6

Environment

  • OpenCode version: 1.17.7 (broken), 1.17.6 (works)
  • Platform: macOS (arm64)
  • Provider: GitHub Copilot (Business plan, organization: selta-dev)
  • Auth: OAuth (non-enterprise, github.com)

Suggested Fix

Add X-GitHub-Api-Version: 2024-12-15 header to all GitHub Copilot API requests, especially the /models endpoint.

Activity

  1. github-actions commented on Jun 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. rekram1-node commented on Jun 17, 2026

    @rekram1-node
    Contributor

    nope we send the api header, u can read the code or run opencode through an http proxy to see for urself

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