Pycharm接入DeepSeek,提升自动化脚本的写作效率

一.效果展示:

二.实施步骤:

1.DeepSeek官网创建API key:

创建成功后,会生成一个API key:

2. PyCharm工具,打开文件->设置->插件,搜索"Continue",点击安装

3.安装完成后,点击,右侧会出现这个图标,点击该图标,打开continue

点击设置按钮:

点击Open Confid File打开配置文件:

4.将配置文件内容替换成下面的代码,将上面的两个apiKey替换成DeepSeek创建的apiKey

python 复制代码
{
  "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即可使用。

相关推荐
虚拟指尖12 分钟前
Ubuntu编译安装COLMAP【实测编译成功】
linux·运维·ubuntu
椎4951 小时前
苍穹外卖前端nginx错误之一解决
运维·前端·nginx
刘某的Cloud1 小时前
parted磁盘管理
linux·运维·系统·parted
极验1 小时前
iPhone17实体卡槽消失?eSIM 普及下的安全挑战与应对
大数据·运维·安全
爱倒腾的老唐2 小时前
24、Linux 路由管理
linux·运维·网络
yannan201903132 小时前
Docker容器
运维·docker·容器
_清浅2 小时前
计算机网络【第六章-应用层】
运维·服务器·计算机网络
正在努力的小河2 小时前
Linux 自带的 LED 灯驱动实验
linux·运维·服务器
李子圆圆2 小时前
电力专用多功能微气象监测装置在电网安全运维中的核心价值是什么?
运维·安全
花开富贵贼富贵2 小时前
MySQL 核心高级特性
运维·数据库·mysql