Skip to content

[Bug] Models from Codex (openai) are not accessible when Copilot is added #43

@mohammad-malik

Description

@mohammad-malik

Due to how model names are just gpt-5.1/5.2 etc across both, only Copilot provider is available for them.

curl -s http://localhost:6616/v1/models \
    -H "Authorization: Bearer $OPENAI_API_KEY" \
    | jq '.data[] | select(.id | contains("gpt-5.2"))'
{
  "created": 1732752000,
  "id": "gpt-5.2",
  "object": "model",
  "owned_by": "github-copilot"
}

Note the lack of a gpt-5.2 from openai.

curl -s http://localhost:6616/v1/models \
    -H "Authorization: Bearer $OPENAI_API_KEY" \
    | jq '.data[] | select(.id | contains("gpt-5.1"))'
{
  "created": 1732752000,
  "id": "gpt-5.1-codex-mini",
  "object": "model",
  "owned_by": "github-copilot"
}
{
  "created": 1732752000,
  "id": "gpt-5.1-codex",
  "object": "model",
  "owned_by": "github-copilot"
}
{
  "created": 1732752000,
  "id": "gpt-5.1",
  "object": "model",
  "owned_by": "github-copilot"
}
{
  "created": 1763424000,
  "id": "gpt-5.1-codex-max",
  "object": "model",
  "owned_by": "openai"
}

Here as well, gpt-5.1/5.1-codex/5.1-codex-mini from openai not visible despite 5.1 codex max being available.

A way to fix this could be to append a prefix, as done with Antigravity. Something like ghc-gpt-5.1.

Metadata

Metadata

Assignees

No one assigned

    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