一元网络论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 256|回复: 0

Copilot搭配DeepSeek,终懂vscode与JetBrains IDE的使用。

[复制链接]

1万

主题

1万

帖子

5万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
57599
发表于 2024-7-29 04:28:20 | 显示全部楼层 |阅读模式
Introduction
The forum instructions can be overly complex. Here's a streamlined guide.
1. Download the Override Project
Visit linux-do/override: Minimal Description (github.com)
Create this file: config.conf:
{
  "bind": "0.0.0.0:8181",
  "proxy_url": "",
  "timeout": 600,
  "codex_api_base": "https://api.deepseek.com/beta/v1",
  "codex_api_key": "sk-",
  "codex_api_organization": "",
  "codex_api_project": "",
  "codex_max_tokens": 500,
  "code_instruct_model": "deepseek-coder",
  "chat_api_base": "https://api.deepseek.com/v1",
  "chat_api_key": "sk-",
  "chat_api_organization": "",
  "chat_api_project": "",
  "chat_max_tokens": 4096,
  "chat_model_default": "deepseek-chat",
  "chat_model_map": {},
  "chat_locale": "zh_CN",
  "auth_token": ""
}
Run docker-compose up -d. Access http://127.0.0.1:8181 to confirm successful setup.
2. Install VSCode Copilot
Install these versions:
  • Copilot 1.219.0
  • Copilotchat 0.17.1

    In VSCode, press Ctrl+Shift+P and type "settings." Add these configurations:
      "github.copilot.advanced": {
        "debug.overrideCAPIUrl": "http://127.0.0.1:8181/v1",
        "debug.overrideProxyUrl": "http://127.0.0.1:8181",
        "debug.chatOverrideProxyUrl": "http://127.0.0.1:8181/v1/chat/completions",
        "authProvider": "github-enterprise"
      },
      "github-enterprise.uri": "https://cocopilot.org"
    Restart VSCode after saving.
    3. Use the Copilot Plugin
    Once installed, you're ready to use the Copilot plugin.
    Disable VSCode Completion Sound Notifications
    If you find the sounds annoying, adjust your settings:
    In VSCode, press Ctrl+Shift+P and type "settings." Add these configurations:
      "accessibility.signals.chatRequestSent": {
        "sound": "off",
        "announcement": "off"
      },
      "accessibility.signals.chatResponseReceived": {
        "sound": "off"
      },
      "accessibility.signals.diffLineDeleted": {
        "sound": "off"
      },
      "accessibility.signals.clear": {
        "sound": "off",
        "announcement": "off"
      },
      "accessibility.signals.diffLineInserted": {
        "sound": "off"
      }
    Configure JetBrains IDE
    1. Get the Plugin Version 1.5.8.5775
    Download from GitHub Copilot Plugin.
    2. Configure with cocopilot.org
    In Settings, navigate to Languages & Frameworks > GitHub Copilot > Authentication Provider: cocopilot.org.
    3. Install Two Plugins
    Download these plugins:
  • ja-netfilter
  • plugin-env
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|一元网络论坛

    GMT+8, 2024-9-21 22:56 , Processed in 0.123910 second(s), 19 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表