> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/pre-basic/providers/github-copilot.md).

# GitHub Copilot

使用 GitHub Copilot 需要先擁有一個 GitHub 帳號，並訂閱 GitHub Copilot 服務，free 版本嘅訂閱都可以，但 free 版本唔支援最新嘅 Claude 3.7 模型，具體請參考 [GitHub Copilot 官網](https://github.com/features/copilot)。

## 獲取 Device Code

撳「登入 GitHub」，獲取 Device Code 並複製。

<figure><img src="/files/16d2ac0496659cf2b31ee6a52ffc03995a8505e6" alt="获取 Device Code 示例图片"><figcaption><p>獲取 Device Code</p></figcaption></figure>

## 喺瀏覽器中填寫 Device Code 並授權

成功獲取 Device Code 後，撳連結打開瀏覽器，喺瀏覽器中登入 GitHub 帳號，輸入 Device Code 並授權。

<figure><img src="/files/b36f15e9603bbd4ab4fabd6fa2a287e39a930da6" alt="GitHub授权.png 示例图片"><figcaption><p>GitHub 授權</p></figcaption></figure>

授權成功後，返去 Cherry Studio，撳「連接 GitHub」，成功後會顯示 GitHub 用戶名同頭像。

<figure><img src="/files/526797613ddf834c7a983e012dc8f73b197695ae" alt="GitHub连接成功示例图片"><figcaption><p>GitHub 連接成功</p></figcaption></figure>

## 撳「管理」獲取模型列表

撳下面嘅「管理」按鈕，會自動連網獲取而家支援嘅模型列表。

<figure><img src="/files/8b62d355701e2075bd053e1db0ff8d5b496cc675" alt="管理按钮获取模型列表示例图片"><figcaption><p>獲取模型列表</p></figcaption></figure>

## 常見問題

### 獲取 Device Code 失敗，請重試

<figure><img src="/files/43e279c37924700fe0f7971fb45cc97400f933c0" alt="获取 Device Code 失败示例图片"><figcaption><p>獲取 Device Code 失敗</p></figcaption></figure>

目前使用 Axios 構建請求，Axios 唔支援 socks 代理，請使用系統代理或 HTTP 代理，或者直接唔喺 CherryStudio 中設定代理，使用全局代理。首先請確保你嘅網絡連接正常，以避免獲取 Device Code 失敗嘅情況。

***

### 💡 獲取幫助同提交反饋

如果您喺配置或使用過程中遇到任何疑問、Bug 或有功能改進建議，請參考 [反饋同建議](/docs/zhong-wen-fan-ti/question-contact/suggestions.md) 入面提供嘅官方渠道。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/pre-basic/providers/github-copilot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
