当前位置: 首页 > news >正文

Python PyCharm DeepSeek接入

先看效果

在这里插入图片描述
在这里插入图片描述

Python PyCharm DeepSeek接入

创建API key

首先进入DeepSeek官网,https://www.deepseek.com/

在这里插入图片描述点击左侧“API Keys”,创建API key,输出名称为“AI”
在这里插入图片描述点击“创建",将API key保存,复制在其它地方。

在PyCharm中下载Continue插件在这里插入图片描述

在这里插入图片描述
安装
在这里插入图片描述下载中
在这里插入图片描述下载完成后,点击OK

配置Continue

在这里插入图片描述
在这里插入图片描述
安装完成后,在右侧的标签栏中,会显示一个Continue的标签,点击进入
在这里插入图片描述在这里插入图片描述

填写申请的key

在这里插入图片描述

弹出配置文件
在这里插入图片描述

我们替换

{"completionOptions": {"BaseCompletionOptions": {"temperature": 0,"maxTokens": 256}},"models": [{"title": "DeepSeek","model": "deepseek-chat","contextLength": 128000,"apiKey": "your apiKey","provider": "deepseek","apiBase": "https://api.deepseek.com/beta"},{"model": "gpt-4o","title": "GPT-4o","systemMessage": "You are an expert software developer. You give helpful and concise responses.","apiKey": "your apiKey","provider": "openai"}],"tabAutocompleteModel": {"title": "DeepSeek Coder","model": "deepseek-coder","apiKey": "your apiKey","provider": "deepseek","apiBase": "https://api.deepseek.com/beta"},"customCommands": [{"name": "test","prompt": "{{ input }}}\n\nWrite 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"}],"contextProviders": [{"name": "diff","params": {}},{"name": "folder","params": {}},{"name": "codebase","params": {}}],"slashCommands": [{"name": "share","description": "Export the current chat session to markdown"},{"name": "commit","description": "Generate a git commit message"}]
}

这三处换成你的key

在这里插入图片描述

在这里插入图片描述
别忘了充值

看效果

在这里插入图片描述
在这里插入图片描述


http://www.mrgr.cn/news/92389.html

相关文章:

  • Java 大视界 —— Java 大数据在智慧能源微电网能量管理中的关键技术(100)
  • 【生成模型】【ComfyUI(三)】使用WebAPI批量调用ComfyUI
  • 浅析DeepSeek在商业银行的应用
  • 将VsCode变得顺手好用(1
  • 学习笔记05——HashMap实现原理及源码解析(JDK8)
  • 架构思维:架构的演进之路
  • docker-compose install dify(deepseek)
  • Spring boot中的@ConfigurationProperties注解
  • IP------PPP协议
  • Apache DolphinScheduler系列1-单节点部署及测试报告
  • haproxy基本配置详解
  • 网络基础知识-2
  • go基础语法
  • Java常见设计模式(中):结构型模式
  • 最小化重投影误差求解PnP
  • 【蓝桥杯】第十五届省赛大学真题组真题解析
  • SQL注入(order by,limit),seacms的报错注入以及系统库的绕过
  • 登录逻辑结合redis
  • 第二十:【路由的props配置】
  • java后端开发day19--学生管理系统升级