Skip to content

Conversation

@Sathiyaraman-M
Copy link
Contributor

Description

Display cost multiplier for GitHub Copilot models in the model selectors (Both in Chat Panel and Inline Assistant)

image

Some technical notes

Although this PR's primary intent is to show the cost multiplier for GitHub Copilot models alone, I have included some necessary plumbing to allow specifying costs for other providers in future. I have introduced an enum called LanguageModelCostInfo for showing cost in different ways for different models. Now, this enum is used in LanguageModel trait to get the cost info.

For now to begin with, in LanguageModelCostInfo, I have specified two ways of pricing: Request-based (1 Agent request - GitHub Copilot uses this) and Token-based (1M Input tokens / 1M Output tokens). I had initially thought about adding a Free type, especially for Ollama but didn't do it after realizing that Ollama has paid plans.

Release Notes:

  • Show cost multiplier for GitHub Copilot models

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 14, 2025
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants