Skip to content

Commit 97bc4dd

Browse files
authored
Merge pull request #43868 from github/repo-sync
Repo sync
2 parents 88b81b7 + 91ac21c commit 97bc4dd

File tree

6 files changed

+36
-7
lines changed

6 files changed

+36
-7
lines changed

content/copilot/concepts/auto-model-selection.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Experience less rate limiting and reduce the mental load of choosing a model by
2424
* Models excluded by administrator policies. See [AUTOTITLE](/copilot/how-tos/copilot-on-github/set-up-copilot/configure-access-to-ai-models).
2525
* Models with premium request multipliers greater than one. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#model-multipliers).
2626
* Models not available in your plan. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#supported-ai-models-per-copilot-plan).
27-
27+
2828
> [!NOTE] Soon {% data variables.copilot.copilot_auto_model_selection %} will choose the best model for you based on your task.
2929
3030
## {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in {% data variables.copilot.copilot_chat_short %}
@@ -38,9 +38,9 @@ Experience less rate limiting and reduce the mental load of choosing a model by
3838
* Eclipse
3939
* Xcode
4040

41-
When you select **Auto** in {% data variables.copilot.copilot_chat_short %}, {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} chooses from the supported models, subject to your policies and subscription type. Models may change over time. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#supported-ai-models-in-auto-model-selection).
41+
When you select **Auto** in {% data variables.copilot.copilot_chat_short %} in IDEs, {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} chooses from the supported models, subject to your policies and subscription type. Models may change over time. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#supported-ai-models-in-auto-model-selection).
4242

43-
> [!TIP] To see which model was used for each response, hover over the response in {% data variables.copilot.copilot_chat_short %}.
43+
> [!TIP] To see which model was used for each response, hover over the response in {% data variables.copilot.copilot_chat_short %} in IDEs.
4444
4545
{% data reusables.copilot.change-the-ai-model %}
4646

@@ -52,6 +52,14 @@ When you select **Auto** in {% data variables.copilot.copilot_chat_short %}, {%
5252

5353
During the {% data variables.release-phases.public_preview %}, if you're using a {% data variables.copilot.copilot_business_short %} or {% data variables.copilot.copilot_enterprise_short %} plan, the organization or enterprise that provides your plan must have the **Editor preview features** policy enabled. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) or [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#copilot-in-githubcom).
5454

55+
## {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in {% data variables.copilot.copilot_cli %}
56+
57+
When you select **Auto** from the list of available models in {% data variables.copilot.copilot_cli %}, {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} chooses from the supported models, subject to your policies and subscription type. Models may change over time. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#supported-ai-models-in-auto-model-selection).
58+
59+
When using Auto, the model used for each response displays in the terminal.
60+
61+
{% data reusables.copilot.change-the-ai-model %}
62+
5563
## {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} in {% data variables.copilot.copilot_cloud_agent %}
5664

5765
When you select **Auto** in {% data variables.copilot.copilot_cloud_agent %}, {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} chooses from the supported list of models, subject to your policies and subscription type. See [AUTOTITLE](/copilot/reference/ai-models/supported-models#supported-ai-models-in-auto-model-selection).

content/copilot/concepts/rate-limits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ If you receive a rate limit error when using {% data variables.product.prodname_
3737
* **Wait and try again.** Rate limits are temporary. Often, waiting a short period and trying again resolves the issue.
3838
* **Check your usage.** If you’re making frequent or automated requests (for example, rapid-fire completions or large-scale usage), consider adjusting your usage pattern.
3939
* **Change your model.** Select models may have stricter rate limits due to limited capacity.
40+
* **Switch to {% data variables.copilot.copilot_auto_model_selection %}.** If you hit a **weekly** rate limit, you can continue using {% data variables.product.prodname_copilot_short %} with {% data variables.copilot.copilot_auto_model_selection_short_cap_a %} until exhausting your premium requests.
4041
* **Upgrade your plan.** If you are on an individual {% data variables.product.prodname_copilot_short %} plan, upgrading your plan will allow for additional usage.
4142
* **Contact Support.** If you’re repeatedly rate limited and believe it’s impacting legitimate use, contact {% data variables.contact.contact_support_page %} for assistance.
4243

content/copilot/how-tos/copilot-cli/cli-best-practices.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ Use `/model` to choose from available models based on your task complexity:
9494

9595
| Model | Best For | Tradeoffs |
9696
| ----- | -------- | --------- |
97+
| **Auto** | Reduced rate limiting and lower latency and errors | See [AUTOTITLE](/copilot/concepts/auto-model-selection#auto-model-selection-in-github-copilot-cli)|
9798
| **Claude Opus 4.5** (default) | Complex architecture, difficult debugging, nuanced refactoring | Most capable but uses more [premium requests](/copilot/concepts/billing/copilot-requests#model-multipliers) |
9899
| **Claude Sonnet 4.5** | Day-to-day coding, most routine tasks | Fast, cost-effective, handles most work well |
99100
| **GPT-5.2 Codex** | Code generation, code review, straightforward implementations | Excellent for reviewing code produced by other models |
100101

101102
**Recommendations:**
102103

104+
* **Auto** intelligently chooses models based on real time system health and model performance, reducing rate limiting and providing lower latency and errors.
103105
* **Opus 4.5** is ideal for tasks requiring deep reasoning, complex system design, subtle bug investigation, or extensive context understanding.
104106
* **Switch to Sonnet 4.5** for routine tasks where speed and cost efficiency matter—it handles the majority of everyday coding effectively.
105107
* **Use Codex** for high-volume code generation and as a second opinion for reviewing code produced by other models.

content/copilot/reference/ai-models/supported-models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ This table lists the AI models available in {% data variables.copilot.copilot_au
5151

5252
{% rowheaders %}
5353

54-
| Model | {% data variables.copilot.copilot_cloud_agent %} | {% data variables.copilot.copilot_chat_short %} |
55-
| --- | --- | --- |
54+
| Model | {% data variables.copilot.copilot_cloud_agent %} | {% data variables.copilot.copilot_chat_short %} | {% data variables.copilot.copilot_cli_short %} |
55+
| --- | --- | --- | --- |
5656
| {% for model in tables.copilot.auto-model-selection %} |
57-
| {{ model.name }} | {% if model.cloud_agent == true %}{% octicon "check" aria-label="Included" %}{% else %}{% octicon "x" aria-label="Not included" %}{% endif %} | {% if model.chat == true %}{% octicon "check" aria-label="Included" %}{% else %}{% octicon "x" aria-label="Not included" %}{% endif %} |
57+
| {{ model.name }} | {% if model.cloud_agent == true %}{% octicon "check" aria-label="Included" %}{% else %}{% octicon "x" aria-label="Not included" %}{% endif %} | {% if model.chat == true %}{% octicon "check" aria-label="Included" %}{% else %}{% octicon "x" aria-label="Not included" %}{% endif %} | {% if model.cli == true %}{% octicon "check" aria-label="Included" %}{% else %}{% octicon "x" aria-label="Not included" %}{% endif %} |
5858
| {% endfor %} |
5959

6060
{% endrowheaders %}

data/tables/copilot/auto-model-selection.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,58 @@
1515
# - name: The model name.
1616
# - cloud_agent: Availability for Copilot cloud agent.
1717
# - chat: Availability for Copilot Chat.
18+
# - cli: Availability for Copilot CLI.
1819

1920
# OpenAI
2021
- name: GPT-4.1
2122
cloud_agent: false
2223
chat: true
24+
cli: false
25+
26+
- name: GPT-5 mini
27+
cloud_agent: false
28+
chat: false
29+
cli: true
2330

2431
- name: GPT-5.3-Codex
2532
cloud_agent: false
2633
chat: true
34+
cli: true
2735

2836
- name: GPT-5.4
2937
cloud_agent: false
3038
chat: true
39+
cli: true
3140

3241
- name: GPT-5.4 mini
3342
cloud_agent: false
3443
chat: true
44+
cli: true
3545

3646
# Anthropic
3747
- name: Claude Haiku 4.5
3848
cloud_agent: false
3949
chat: true
50+
cli: true
4051

4152
- name: Claude Sonnet 4.5
4253
cloud_agent: true
4354
chat: false
55+
cli: false
4456

4557
- name: Claude Sonnet 4.6
4658
cloud_agent: false
4759
chat: true
60+
cli: true
4861

4962
# xAI
5063
- name: Grok Code Fast 1
5164
cloud_agent: false
5265
chat: true
66+
cli: false
5367

5468
# Fine-tuned OAI models
5569
- name: Raptor mini
5670
cloud_agent: false
5771
chat: true
72+
cli: false

src/data-directory/lib/data-schemas/tables/copilot/auto-model-selection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const autoModelSelectionSchema = {
55
items: {
66
type: 'object',
77
additionalProperties: false,
8-
required: ['name', 'cloud_agent', 'chat'],
8+
required: ['name', 'cloud_agent', 'chat', 'cli'],
99
properties: {
1010
name: {
1111
type: 'string',
@@ -17,6 +17,9 @@ const autoModelSelectionSchema = {
1717
chat: {
1818
type: 'boolean',
1919
},
20+
cli: {
21+
type: 'boolean',
22+
},
2023
},
2124
},
2225
}

0 commit comments

Comments
 (0)