DeepSeek-Coder icon indicating copy to clipboard operation
DeepSeek-Coder copied to clipboard

能否集成到vscode的插件里

Open Lyan-ing opened this issue 1 year ago • 9 comments

如题^_^

Lyan-ing avatar Nov 03 '23 01:11 Lyan-ing

可以魔改 codeshell 的 vscode 插件 ^^ 我试过用 llama.cpp 的 server 起一个 mistral-7b 搭配 codeshell vscode 插件,只需要修改插件内置的 prompt 改成 mistral 的格式就能正常使用了 ^^

yportne13 avatar Nov 03 '23 02:11 yportne13

同问

opptimus avatar Nov 03 '23 06:11 opptimus

目前正在集成中,但是可以使用开源的插件如refact,替换成我们的模型即可

guoday avatar Nov 04 '23 02:11 guoday

@yportne13 Where can I change the built in prompt from codeshell vscode ? Thanks

Edit : When using regular llama cpp with deepseek coder, when completion there's message

type error: respData.split is not a function

x4080 avatar Nov 09 '23 21:11 x4080

Have you tried Continue.dev, an extension for VSCode? You can load the model with llama.cpp and add Deepseek as the model to use. Here's my config (in the continue.dev text box, type /config to access) Got it from YearZero on TheBloke's discord.

{
  "models": [
    {
      "title": "CodeLlama-34b-Instruct",
      "provider": "llama.cpp",
      "model": "codellama-34b",
      "api_base": "http://localhost:8080"
    },
    {
      "title": "CodeLlama-7b-Instruct",
      "provider": "llama.cpp",
      "model": "codellama-7b",
      "api_base": "http://localhost:8080",
      "system_message": ""
    },
    {
      "title": "DeepSeek",
      "provider": "llama.cpp",
      "model": "deepseek-33b",
      "api_base": "http://localhost:8080"
    }
  ],
  "model_roles": {
    "default": "DeepSeek",
    "chat": "DeepSeek",
    "edit": "DeepSeek",
    "summarize": "DeepSeek"
  },
  "system_message": "",
  "slash_commands": [
    {
      "name": "edit",
      "description": "Edit highlighted code",
      "step": "EditHighlightedCodeStep"
    },
    {
      "name": "config",
      "description": "Customize Continue",
      "step": "OpenConfigStep"
    },
    {
      "name": "comment",
      "description": "Write comments for the highlighted code",
      "step": "CommentCodeStep"
    },
    {
      "name": "clear",
      "description": "Clear step history",
      "step": "ClearHistoryStep"
    },
    {
      "name": "share",
      "description": "Download and share this session",
      "step": "ShareSessionStep"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command",
      "step": "GenerateShellCommandStep"
    }
  ],
  "custom_commands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "context_providers": [
    {
      "name": "diff"
    },
    {
      "name": "url"
    },
    {
      "name": "terminal"
    }
  ]
}

hobpond avatar Nov 28 '23 18:11 hobpond

@hobpond Thanks, I'll try it

x4080 avatar Nov 28 '23 21:11 x4080

I have a plan to implement it using codegpt+DeepSeek-Coder https://www.youtube.com/watch?v=cAfWOMZXPGk&t=338s https://www.bilibili.com/video/BV1EC4y1X74C/

wwwzhouhui avatar Dec 14 '23 03:12 wwwzhouhui

@wwwzhouhui cool !

x4080 avatar Dec 14 '23 20:12 x4080