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即可使用。

相关推荐
心一信息2 小时前
如何在Ubuntu上部署excalidraw
linux·运维·ubuntu
人生匆匆2 小时前
linux ext4缩容home,扩容根目录
linux·运维·服务器
鱼骨不是鱼翅2 小时前
自动化框架pytest
运维·自动化·pytest
冗量2 小时前
PPT自动化 python-pptx - 8: 文本(text)
python·自动化·powerpoint
海岸线科技2 小时前
汽车供应链PPAP自动化审核指南:如何用AI实现规则精准匹配与文件智能校验
人工智能·自动化·汽车
IT成长日记2 小时前
【自动化运维神器Ansible】YAML支持的数据类型详解:构建高效Playbook的基石
运维·自动化·ansible·数据类型·yaml·playbook
IT成长日记2 小时前
【自动化运维神器Ansible】YAML语法详解:Ansible Playbook的基石
运维·自动化·ansible·yaml
demaichuandong2 小时前
丝杆升降机在物流运输领域有哪些应用场景
人工智能·自动化·信号处理
yuanzhengme3 小时前
Shell【脚本 02】离线安装配置Zookeeper及Kafka并添加service服务和开机启动(脚本分析)
linux·zookeeper·kafka·自动化·安装脚本
sakoba3 小时前
Docker学习其二(容器卷,Docker网络,Compose)
运维·网络·学习·docker·容器·基础