Experiment: sort model picker by vendor (OpenAI, Anthropic, Gemini)#4965
Draft
pierceboggan wants to merge 3 commits intomainfrom
Draft
Experiment: sort model picker by vendor (OpenAI, Anthropic, Gemini)#4965pierceboggan wants to merge 3 commits intomainfrom
pierceboggan wants to merge 3 commits intomainfrom
Conversation
Sort chat model picker endpoints by vendor priority so OpenAI models appear first, followed by Anthropic, then Gemini, then others. Auto endpoint is unaffected (always first via its category order). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Wrap the vendor-priority sort in a check for the 'chat.modelPickerVendorOrdering' boolean treatment variable so the ordering change can be A/B tested via the experimentation framework. When the flag is unset or false, server ordering is preserved. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace raw experiment service call with an ExperimentBased config setting 'chat.modelPickerVendorOrdering' that can be toggled via VS Code settings or controlled via experiments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We want to A/B test whether reordering models in the chat model picker by vendor improves the user experience. Currently, models appear in whatever order the server returns them (roughly alphabetical), which surfaces Claude models before GPT models. This change lets us experiment with a vendor-prioritized ordering: OpenAI → Anthropic → Gemini → others.
Approach
languageModelAccess.ts: After assemblingchatEndpointsfrom the server response, sort them by vendor usingendpoint.modelProvider. The Auto endpoint is excluded from sorting (it's always first via its category order). Within each vendor group, the original server ordering is preserved (stable sort).github.copilot.chat.modelPickerVendorOrderingas anExperimentBasedboolean config (defaultfalse). This means:experimental+onExpinpackage.jsonfalseor unset, the model list is unchanged from the current server-driven order.Key files
src/extension/conversation/vscode-node/languageModelAccess.ts— sort logic + config readsrc/platform/configuration/common/configurationService.ts—ConfigKey.Shared.ModelPickerVendorOrderingdefinitionpackage.json/package.nls.json— setting registration and description