使用 Github Copilot 編寫程式時,要特別注意什麼?

使用 Github Copilot 編寫程式時,要特別注意什麼?:原文配圖
使用 Github Copilot 編寫程式時,要特別注意什麼?:原文配圖。

Image: ideogram

Github Copilot 是由微軟(Microsoft)旗下的 GitHub 與 OpenAI 合作,所推出的 AI 程式設計助理。GitHub Copilot能夠理解開發者所編寫的程式碼,並即時提供智慧化的程式碼建議。開發者只需輸入簡單的註解或函式名稱,Copilot 就能自動生成對應的程式碼區塊,大幅提升開發效率。

Copilot 支援多種程式語言,如 Python、JavaScript、TypeScript、Ruby、Go、C# 和 C++ 等,適用於各種開發情境,讓開發者不必再花時間撰寫重複的程式碼片段。此外,Copilot 還能協助撰寫註解和文件,讓程式碼在未來更易於維護。

然而在使用Github Copilot之前,也應該瞭解利用 AI 進行程式設計所須擔負的額外責任。這些權利義務,主要規範於 Github Copilot 產品的使用條款中。

建議之程式碼歸使用者所有

使用者擁有Github Copilot 所生成的程式碼建議。

Ownership of Suggestions and Your Code.

GitHub does not own Suggestions. You retain ownership of Your Code.

GitHub Copilot Product Specific Terms - 2024 01 24 - FINAL

必須開啟重複偵測過濾器,Github 才會為程式碼建議提供擔保

當生成之程式碼侵害他人權益時,Github 可以提供擔保,但前提是使用者要開啟重複偵測過濾器(Duplicate Detection filtering)。這個功能可以檢查產生的程式碼是否與已知的程式碼重複。

Defense of Third Party Claims.

If your Agreement provides for the defense of third party claims, that provision will apply to your use of GitHub Copilot, including to the Suggestions you receive. Notwithstanding any other language in your Agreement, any GitHub defense obligations related to your use of GitHub Copilot do not apply if you have not set the Duplicate Detection filtering feature available in GitHub Copilot to its “Blocked” setting. You can learn how to enable the Duplicate Detection filter at gh.io/cfb-dd.

GitHub Copilot Product Specific Terms - 2024 01 24 - FINAL

其他一般性的 Github 使用條款,可參考 Github 的 General Terms

GitHub.General.Terms_20220121_lockedDownload

由於條款內容十分複雜且會頻繁更新,也會因使用者所在的國家或訂閱的方案而有所不同,本文內容僅供概略之參考,詳細之權利義務請務必參考 Github 官網的最新使用條款。

GitHub_Copilot_Product_Specific_Terms_-2024_01_24-_FINALDownload