跳转至

VSCode CodeGPT


协作者:球球

Windows macOS Linux

CodeGPT:使用我们的 AI 合作者像专业人士一样编写代码!

CodeGPT 扩展是您的双人编程伙伴,帮助您更高效地编写代码。它提供 AI 聊天助手、自动补全、代码解释、错误检查等功能。此扩展还支持使用来自不同提供商的各种 AI 模型,提升您的编程体验。

  1. 官方主页:https://codegpt.co/
  2. 下载地址:VSCode Marketplace
  3. 使用指南:https://docs.codegpt.co/docs/intro

效果演示


特性

Explore and discover the 100+ AI technical assistants

Whether you need to integrate your private knowledge, such as your codebase repository, technical documentation, customer requests, internal policies, cybersecurity policies, design specs, or anything else, into your coding experience, the agent platform is your starting point. Discover the ease of our no-code Copilot creation platform, each tailored to streamline your operations and enhance efficiency, providing direct access to these Agents within your IDE.

探索并发现100多个AI技术助手。

无论您需要将私有知识(例如代码库存储库、技术文档、客户请求、内部政策、网络安全政策、设计规范或其他任何内容)整合到您的编码体验中,代理平台都是您的起点。发现我们的无代码Copilot创建平台的便利性,每个平台都经过定制,可简化您的操作并提高效率,直接在您的IDE内访问这些代理。

AI 模型配置方法


参数修改

Api Key:前往 OpenAI 官网,或者第三方网站获取。

请求地址格式:

  • OpenAI 官方:https://api.openai.com/v1/chat/completions

  • 第三方(示例):https://api.zetatechs.com/v1/chat/completions

图文指引

首先安装插件:

PixPin_2024-06-17_13-37-23.webp

安装好 CodeGPT 插件后,关闭 VSCode,然后分别打开下面两个文件,搜索 api.openai.com

(适用版本:3.4.0,后续有更新可尝试新版本号对应文件路径)

文件 1:3431.js
C:\Users\修改为你的用户名\.vscode\extensions\danielsanmedium.dscodegpt-3.4.0\standalone\.next\server\chunks\3431.js
文件 2:extension.js
C:\Users\修改为你的用户名\.vscode\extensions\danielsanmedium.dscodegpt-3.4.0\dist\extension.js

PixPin_2024-06-17_13-51-28.webp

PixPin_2024-06-17_13-44-41.webp

PixPin_2024-06-17_13-56-52.webp

PixPin_2024-06-17_13-56-23.webp

修改好接口地址后即可使用:

PixPin_2024-06-17_14-03-55.webp

PixPin_2024-06-17_14-04-11.webp

PixPin_2024-06-17_14-04-36.webp

PixPin_2024-06-17_14-05-18.webp