一.效果展示:
二.实施步骤:
1.DeepSeek官网创建API key:
创建成功后,会生成一个API key:
2. PyCharm工具,打开文件->设置->插件,搜索“Continue”,点击安装
3.安装完成后,点击,右侧会出现这个图标,点击该图标,打开continue
点击设置按钮:
点击Open Confid File打开配置文件:
4.将配置文件内容替换成下面的代码,将上面的两个apiKey替换成DeepSeek创建的apiKey
{"models": [{"title": "DeepSeek Coder","model": "deepseek-coder","contextLength": 128000,"apiKey": "替换成DeepSeek的API KEY", "provider": "deepseek"},{"title": "DeepSeek Chat","model": "deepseek-chat","contextLength": 128000,"apiKey": "替换成DeepSeek的API KEY","provider": "deepseek"}],"contextProviders": [{"name": "code","params": {}},{"name": "docs","params": {}},{"name": "diff","params": {}},{"name": "terminal","params": {}},{"name": "problems","params": {}},{"name": "folder","params": {}},{"name": "codebase","params": {}}],"slashCommands": [{"name": "share","description": "Export the current chat session to markdown"},{"name": "cmd","description": "Generate a shell command"},{"name": "commit","description": "Generate a git commit message"}]
}
重启pycharm即可使用。