Skip to content

Conversation

@apple-techie
Copy link
Contributor

@apple-techie apple-techie commented Feb 5, 2026

Summary

  • Add provider-specific model alias resolution to translate legacy GitHub Copilot model names to their correct IDs
  • Enable claude-opus-4.5 in the GitHub Copilot model list

Details

GitHub Copilot's API uses model IDs like claude-opus-4-5-20251101, but some clients may still send legacy names like claude-4.5-opus. This PR adds a PROVIDER_MODEL_ALIASES map in model.js that transparently resolves:

Legacy Name Resolved To
claude-4.5-opus claude-opus-4-5-20251101
claude-4.5-sonnet claude-sonnet-4.5
claude-4.5-haiku claude-haiku-4.5

This ensures backwards compatibility for existing configurations using either naming convention.

Files Changed

  • open-sse/services/model.js — Add PROVIDER_MODEL_ALIASES map and resolveProviderModelAlias() function, integrate into getModelInfoCore()
  • open-sse/config/providerModels.js — Enable claude-opus-4.5 in GitHub Copilot model list

Test plan

  • Verified model routing with gh/claude-opus-4.5 works
  • Verified legacy alias gh/claude-4.5-opus resolves to claude-opus-4-5-20251101
  • Verified non-aliased models pass through unchanged

🤖 Generated with Claude Code

@apple-techie apple-techie force-pushed the github-copilot-model-fixes branch 2 times, most recently from 11ad700 to 4fe69f7 Compare February 5, 2026 08:39
@decolua
Copy link
Owner

decolua commented Feb 5, 2026

I’ve cherry-picked and fixed it. Thanks alot

Add provider-specific model alias resolution to translate legacy GitHub
Copilot model names to their correct IDs:
- claude-4.5-opus → claude-opus-4-5-20251101
- claude-4.5-sonnet → claude-sonnet-4.5
- claude-4.5-haiku → claude-haiku-4.5

Also enable claude-opus-4.5 in the GitHub Copilot model list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@apple-techie apple-techie force-pushed the github-copilot-model-fixes branch from 4fe69f7 to 3a566c4 Compare February 6, 2026 17:41
@apple-techie apple-techie changed the title fix: expand GitHub Copilot model mappings and add alias resolution fix: add GitHub Copilot model alias resolution for legacy model names Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants