From d6261d383e86bbf11db92b51b08a299b633993c6 Mon Sep 17 00:00:00 2001 From: Sam Browning <106113886+sabrowning1@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:20:03 -0400 Subject: [PATCH] Add content on model selection for Copilot Chat (#52328) Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com> --- ...ng-github-copilot-questions-in-your-ide.md | 19 ++++++++++++++++++- .../prototyping-with-ai-models.md | 2 ++ .../copilot/copilot-chat-models-beta-note.md | 1 + .../copilot/copilot-chat-models-list.md | 7 +++++++ .../model-picker-enable-preview-features.md | 1 + data/reusables/copilot/open-chat-vs-code.md | 1 + data/reusables/copilot/policies-for-dotcom.md | 11 ++++++++--- 7 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 data/reusables/copilot/copilot-chat-models-beta-note.md create mode 100644 data/reusables/copilot/copilot-chat-models-list.md create mode 100644 data/reusables/copilot/model-picker-enable-preview-features.md create mode 100644 data/reusables/copilot/open-chat-vs-code.md diff --git a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md index e2658b183448..f1305bbc9f0b 100644 --- a/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md +++ b/content/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide.md @@ -23,11 +23,28 @@ shortTitle: Chat in IDE {% data reusables.copilot.chat-access-denied %} +## AI models for {% data variables.product.prodname_copilot_chat_short %} + +{% data reusables.copilot.copilot-chat-models-beta-note %} + +{% data reusables.copilot.copilot-chat-models-list %} + +### Changing your AI model + +{% data reusables.copilot.model-picker-enable-preview-features %} +{% data reusables.copilot.open-chat-vs-code %} +1. In the bottom right of the chat view, select the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" %} dropdown menu, then click the AI model of your choice. + +> [!NOTE] +> +> * If you use {% data variables.product.prodname_copilot_extensions_short %}, they may override the model you select. +> * Experimental pre-release versions of the models may not interact with all filters correctly, including the duplication detection filter. + ## Submitting prompts You can ask {% data variables.product.prodname_copilot_chat_short %} to give code suggestions, explain code, generate unit tests, and suggest code fixes. -1. Open the chat view by clicking the chat icon in the activity bar or by entering Control+Command+i (Mac) / Ctrl+Alt+i (Windows/Linux). +{% data reusables.copilot.open-chat-vs-code %} ![Screenshot of the {% data variables.product.prodname_copilot_chat_short %} icon in the Activity Bar.](/assets/images/help/copilot/vsc-copilot-chat-icon.png) diff --git a/content/github-models/prototyping-with-ai-models.md b/content/github-models/prototyping-with-ai-models.md index 2f69071fe104..4a341cf4194f 100644 --- a/content/github-models/prototyping-with-ai-models.md +++ b/content/github-models/prototyping-with-ai-models.md @@ -15,6 +15,8 @@ To find AI models, go to [{% data variables.product.prodname_marketplace %}](htt To view details about a model, click on the model's name. +> [!NOTE] Access to OpenAI's `o1` models is in public beta and subject to change. To request access, join the [waitlist](https://github.com/o1-waitlist-signup). + ## Experimenting with AI models in the playground >[!NOTE] diff --git a/data/reusables/copilot/copilot-chat-models-beta-note.md b/data/reusables/copilot/copilot-chat-models-beta-note.md new file mode 100644 index 000000000000..a3bff554c165 --- /dev/null +++ b/data/reusables/copilot/copilot-chat-models-beta-note.md @@ -0,0 +1 @@ +> [!NOTE] The ability to change the AI model used by {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %} is in beta and subject to change. To request access, join the [waitlist](https://github.com/o1-waitlist-signup). diff --git a/data/reusables/copilot/copilot-chat-models-list.md b/data/reusables/copilot/copilot-chat-models-list.md new file mode 100644 index 000000000000..aed0c5d0a3c5 --- /dev/null +++ b/data/reusables/copilot/copilot-chat-models-list.md @@ -0,0 +1,7 @@ +For those enrolled in the model selection beta for {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %}, the following models are currently available: + +* `gpt-4o`: This is the default {% data variables.product.prodname_copilot_chat_short %} model. It is a versatile, multimodal model that excels in both text and image processing and is designed to provide fast, reliable responses. It also has superior performance in non-English languages. +* `o1-preview`: This model is focused on advanced reasoning and solving complex problems, in particular in math and science. It responds more slowly than the `gpt-4o` model. You can make 10 requests to this model per day. +* `o1-mini`: This is the faster version of the `o1-preview` model, balancing the use of complex reasoning with the need for faster responses. It is best suited for code generation and small context operations. You can make 50 requests to this model per day. + +For more information on these models, see [Models](https://platform.openai.com/docs/models/models) in the OpenAI Platform documentation. diff --git a/data/reusables/copilot/model-picker-enable-preview-features.md b/data/reusables/copilot/model-picker-enable-preview-features.md new file mode 100644 index 000000000000..6fc0877884df --- /dev/null +++ b/data/reusables/copilot/model-picker-enable-preview-features.md @@ -0,0 +1 @@ +1. If you access {% data variables.product.prodname_copilot_chat_short %} through a {% data variables.product.prodname_copilot_for_business %}{% ifversion ghec %} or {% data variables.product.prodname_copilot_enterprise %}{% endif %} subscription, your organization{% ifversion ghec %} or enterprise{% endif %} must enable preview features for {% data variables.product.prodname_copilot_short %}. See "[AUTOTITLE](/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization){% ifversion ghec %}" or "[AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise){% endif %}." diff --git a/data/reusables/copilot/open-chat-vs-code.md b/data/reusables/copilot/open-chat-vs-code.md new file mode 100644 index 000000000000..e7072263f891 --- /dev/null +++ b/data/reusables/copilot/open-chat-vs-code.md @@ -0,0 +1 @@ +1. To open the chat view, click the chat icon in the activity bar or press Control+Command+i (Mac) / Ctrl+Alt+i (Windows/Linux). diff --git a/data/reusables/copilot/policies-for-dotcom.md b/data/reusables/copilot/policies-for-dotcom.md index a17b2781a071..fc6d370381ab 100644 --- a/data/reusables/copilot/policies-for-dotcom.md +++ b/data/reusables/copilot/policies-for-dotcom.md @@ -1,6 +1,11 @@ * **Opt in to user feedback collection**: If enabled, users can provide feedback on {% data variables.product.prodname_copilot_short %} pull request summaries. For more information, see "[AUTOTITLE](/enterprise-cloud@latest/copilot/github-copilot-enterprise/copilot-pull-request-summaries/creating-a-pull-request-summary-with-github-copilot)." -* **Previews of {% data variables.product.prodname_copilot_short %} features**: If enabled, users can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features include: +* **Opt in to preview features**: If enabled, users can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features include: - * {% data variables.product.prodname_copilot_autocomplete_pr %}. For more information, see "[AUTOTITLE](/copilot/using-github-copilot/using-copilot-text-completion)." - * Asking {% data variables.product.prodname_copilot_short %} why a workflow has failed. For more information, see "[AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom#ask-why-a-workflow-has-failed)." + * {% data variables.product.prodname_copilot_autocomplete_pr %}. See "[AUTOTITLE](/copilot/using-github-copilot/using-copilot-text-completion)." + * Asking {% data variables.product.prodname_copilot_short %} why a workflow has failed. See "[AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom#ask-why-a-workflow-has-failed)." * The ability for {% data variables.product.prodname_copilot_short %} to plan a strong response by asking for additional information when a prompt is unclear, then determining which skills it should use to respond. For more information on skills, see "[AUTOTITLE](/enterprise-cloud@latest/copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom#powered-by-skills)." + * The ability to: + * Change the AI model used by {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %}. See "[AUTOTITLE](/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide#ai-models-for-copilot-chat)." + * Use `o1` models in {% data variables.product.prodname_github_models %}. See "[AUTOTITLE](/github-models/prototyping-with-ai-models)." + + To use these AI models, your organization{% ifversion ghec %} or enterprise{% endif %} must also join the [waitlist](https://github.com/o1-waitlist-signup).