PyCharm接入DeepSeek实现AI编程
DeepSeek-V3
效果演示
创建 API Key
https://www.deepseek.com/
在 PyCharm中下载Continue插件
配置 Continue
{"completionOptions": {"BaseCompletionOptions": {"temperature": 0.0,"maxTokens": 256}},"models": [{"title": "DeepSeek","model": "deepseek-chat","contextLength": 128000,"apiKey": "REDACTED","provider": "deepseek","apiBase": "https://api.deepseek.com/beta"}],"tabAutocompleteModel": {"title": "DeepSeek Coder","model": "deepseek-coder","apiKey": "REDACTED","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"}]}
🏴☠️宝藏级🏴☠️ 原创公众号『数据STUDIO』内容超级硬核。公众号以Python为核心语言,垂直于数据科学领域,包括可戳👉Python|MySQL|数据分析|数据可视化|机器学习与数据挖掘|爬虫 等,从入门到进阶!
长按👇关注- 数据STUDIO -设为星标,干货速递