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

vscode 如何通过Continue引入AI 助手deepseek

第一步:

在deepseek 官网上注册账号,得到APIKeys(deepseek官网地址)
在这里插入图片描述创建属于自己的APIKey,然后复制这个key,(注意保存自己的key)!

第二步:

打开vscode,在插件市场安装Continue插件,
在这里插入图片描述点击设置,添加deepseek模型,默认的模型用不了。在这里插入图片描述**通过这个方法添加deepseek模型后,如果不起作用,建议通过config.json文件添加**
通过这个方法添加deepseek模型后,如果不起作用,建议通过config.json文件添加
文件内容:

{
 "completionOptions": {
 "BaseCompletionOptions": {
 "temperature": 0,
 "maxTokens": 256
    }
  },
 "models": [
    {
 "title": "DeepSeek",
 "model": "deepseek-chat",
 "contextLength": 128000,
 "apiKey": "你的ak",
 "provider": "openai",
 "apiBase": "https://api.deepseek.com/beta"
    },
    {
 "title": "DeepSeek Coder",
 "model": "deepseek-coder",
 "contextLength": 128000,
 "provider": "deepseek",
 "apiKey": "你的ak"
    }
  ],
 "tabAutocompleteModel": {
 "title": "DeepSeek",
 "model": "deepseek-chat",
 "apiKey": "你的ak",
 "provider": "openai",
 "apiBase": "https://api.deepseek.com/beta"
  },
 "slashCommands": [
    {
 "name": "edit",
 "description": "Edit highlighted code"
    },
    {
 "name": "comment",
 "description": "Write comments for the highlighted code"
    },
    {
 "name": "share",
 "description": "Export the current chat session to markdown"
    },
    {
 "name": "cmd",
 "description": "Generate a shell command"
    }
  ],
 "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": "open",
 "params": {}
    },
    {
 "name": "terminal",
 "params": {}
    }
  ]
}

  

在这里插入图片描述
添加完成后,出现如图的模型选择,就可以正常使用了。没有生效的话,可以重新打开vscode。


http://www.kler.cn/a/534896.html

相关文章:

  • 免费PDF 转换成 Word、PPT、Excel 格式的工具
  • “AI隐患识别系统,安全多了道“智能护盾”
  • Sentinel的安装和做限流的使用
  • 【VM】VirtualBox安装ubuntu22.04虚拟机
  • Java 大视界 -- Java 大数据在智慧文旅中的应用与体验优化(74)
  • 【R语言】获取数据
  • 国产编辑器EverEdit - 自定义标记使用详解
  • python爬虫--简单登录
  • 无界构建微前端?NO!NO!NO!多系统融合思路!
  • HTML 复习
  • [SAP ABAP] 面向对象程序设计-类的访问区域
  • 【React】合成事件语法
  • 防静电监控看板如何助力生产线提升品质管理效率
  • C语言基础系列【4】C语言基础语法
  • 深度剖析 C++17 中的 std::byte:解锁字节级编程新境界
  • PHP JSON操作指南
  • uniapp使用uts插件调用原生API
  • 鸿蒙 Next 开发实践:使用 WebView 适配移动端网站
  • JAVA异步的UDP 通讯-客户端
  • 云端IDE如何重定义开发体验
  • VS Code Python 开发环境配置
  • Linux环境下的事件驱动力量:探索Libevent的高性能IO架构
  • Java 中接口和抽象类的异同
  • Hive之数据操作DML
  • 神经网络常见激活函数 3-ReLU函数(修正线性单元)
  • 网络安全--边界安全-防火墙