# 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 失敗嘅情況。


---

# Agent Instructions: 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:

```
GET https://docs.cherry-ai.com/docs/zhong-wen-fan-ti/pre-basic/providers/github-copilot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
