摘要:{ "completionOptions": { "BaseCompletionOptions": { "temperature": 0.0, "maxTokens": 256 } }, "models": [ { "title": "DeepSeek", "
DeepSeek会为每个人赠送10元余额
点击左侧“API Keys”,点击创建API key,输出名称为“AI代码提示”,也可以使用其它自定义的名称。
点击“创建",一定要记录此处的API key,可以先将API key复制在其它地方。
打开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" } ]}修改时将会弹出提示,点击确定。
随后,我们将两处apiKey替换为先前保存的API key。
保存文件后,即可开始使用。
来源:散文随风想
免责声明:本站系转载,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权和其它问题,请在30日内与本站联系,我们将在第一时间删除内容!