Submitting a question to Copilot Chat
Copilot Chat is available from any page on GitHub. Some questions work best in a specific context, such as a repository, issue, or pull request.
-
Navigate to https://github.com/copilot.
-
In the prompt box, type a question and press Enter.
Some examples of general questions you could ask are:
-
Optionally, after submitting a question, you can click in the text box to stop the response.
-
Within a conversation thread, you can ask follow-up questions. Copilot will answer within the context of the conversation.
Viewing an editing generated files
Remarque
This feature is currently in public preview and subject to change.
Copilot may generate files as part of its response, which you can view, edit, and download from the side panel.
Changing and comparing AI models
You can choose from a selection of AI models, each with different strengths. Different models have different premium request multipliers, which affect your monthly usage allowance. For details, see Requests in GitHub Copilot.
If you access Copilot Chat through a Copilot Business or Copilot Enterprise subscription, your organization or enterprise must grant members the ability to switch to a different model. See Managing policies and features for GitHub Copilot in your organization or Managing policies and features for GitHub Copilot in your enterprise.
- At the bottom of Copilot Chat, select the CURRENT-MODEL dropdown menu, then click the AI model of your choice.
After submitting a prompt, you can also regenerate a response using a different model by clicking the retry icon () below the response. You can switch between responses to compare results.
Using subthreads in a conversation
Subthreads are branches of a conversation that let you explore aspects of a topic, or new topics, all within the same thread.
To create a subthread, hover over one of your previous questions and click the button. Edit the question, then click Send. You cannot edit any attachments.
The response to your edited question is displayed in a new subthread. An edit counter appears below the question. Hover over the counter, then click or to navigate between subthreads.
Using images in Copilot Chat
Remarque
This feature is currently in public preview and subject to change.
You can attach images to your prompts by pasting, dragging, or clicking in the prompt box and then selecting Upload from computer. Select a model that supports images from the model picker. For supported file types and example questions, see Provide visual inputs to GitHub Copilot.