vscode的ai插件
Tabnine插件
- 智能补全
Continue插件
- 通过配置mistral模型很好用
- 获取mistral的apikey : https://mistral.ai/
- 配置mistral: https://docs.continue.dev/customize/model-providers/mistral
- ai对话、智能补全、代码优化等等
- 切换模型、自定义模型
- 可替换tabnine插件
配置continue
- 通过config.json可配置
- 配置tab智能补全,通过
tabAutocompleteModel - 配置chat聊天、代码优化等等,通过model定义模型
- 主要配置
apikey和provider
- 配置tab智能补全,通过
"models": [
{
"title": "Mistral Large",
"provider": "mistral",
"model": "mistral-large-latest",
"apiKey": "w6tvX00ShgLWo8gcAFPQBLKjm3mme88q"
}
],
"tabAutocompleteModel": {
"title": "Tab Autocomplete",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "w6tvX00ShgLWo8gcAFPQBLKjm3mme88q"
},
补全
- 如果mistral模型不支持,可以使用Codestral
- 获取Codestral的密钥: https://console.mistral.ai/codestral
"tabAutocompleteModel": {
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "yqfd3WEebO0gwBnavfctrijjap4GshTf"
}