Skip to content

Add new Copilot model aliases and upgrade SDK#36

Merged
zortos293 merged 2 commits intomainfrom
codex/add-copilot-gemini-raptor-models
Mar 17, 2026
Merged

Add new Copilot model aliases and upgrade SDK#36
zortos293 merged 2 commits intomainfrom
codex/add-copilot-gemini-raptor-models

Conversation

@zortos293
Copy link
Owner

@zortos293 zortos293 commented Mar 17, 2026

This pull request introduces improvements to Copilot model handling, including updating the list of available models, refining model ordering logic, and enhancing alias mapping and normalization. The changes ensure that model pickers display Copilot models in a preferred order, new models and aliases are supported, and tests are added to verify these behaviors.

Copilot Model Options and Aliases

  • Added new Copilot models (gpt-5.4-mini, gemini-3.1-pro, raptor-mini) to MODEL_OPTIONS_BY_PROVIDER, and updated MODEL_SLUG_ALIASES_BY_PROVIDER to support aliases like "5.4-mini", "gemini-3.1", and "raptor" for these models. [1] [2] [3] [4] [5]

  • Updated tests in model.test.ts to verify normalization and resolution of new Copilot model aliases and options. [1] [2]

Model Picker Ordering Logic

  • Implemented orderCopilotBuiltInModelOptions in ChatView.logic.ts to reorder runtime Copilot models to match the preferred built-in picker order, and integrated it into the ChatView.tsx model picker logic. [1] [2] [3]

  • Added unit tests for orderCopilotBuiltInModelOptions to ensure correct ordering and handling of unknown models. [1] [2]

Dependency Updates

  • Updated Copilot dependencies in package.json to newer versions for improved compatibility and features.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added three new Copilot model options: GPT-5.4 mini, Gemini 3.1 Pro, and Raptor mini.
    • Improved Copilot model selection ordering for better UI presentation.
  • Chores

    • Updated GitHub Copilot dependencies to latest versions.
  • Tests

    • Added test coverage for model ordering and slug handling.

@zortos293 zortos293 merged commit acb5004 into main Mar 17, 2026
2 of 4 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 733f137d-587f-4305-8f59-493640f4783c

📥 Commits

Reviewing files that changed from the base of the PR and between f22fc29 and 98cb92b.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock, !bun.lock
📒 Files selected for processing (6)
  • apps/server/package.json
  • apps/web/src/components/ChatView.logic.test.ts
  • apps/web/src/components/ChatView.logic.ts
  • apps/web/src/components/ChatView.tsx
  • packages/contracts/src/model.ts
  • packages/shared/src/model.test.ts

📝 Walkthrough

Walkthrough

This pull request updates GitHub Copilot integration by bumping dependency versions, adding three new model options (gpt-5.4-mini, gemini-3.1-pro, raptor-mini) with corresponding slug aliases, and introducing an orderCopilotBuiltInModelOptions function to reorder model choices. The function sorts Copilot models by a preferred order before display in the UI. Test coverage is added for the new function and slug alias handling. Changes span dependency updates, model configuration, UI logic, and comprehensive test additions across multiple packages.

📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can enable review details to help with troubleshooting, context usage and more.

Enable the reviews.review_details setting to include review details such as the model used, the time taken for each step and more in the review comments.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant