Continue
Continue 帮助您在 IDE、终端和 CI 中构建和运行自定义智能体。 官方网站:continue.dev
1.1 使用方法
方式一:配置文件(推荐)
在 ~/.continue/config.json 或项目根目录 continue/config.json 中添加配置:
{
"models": [
{
"name": "Luchentech Tech",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key"
}
]
}
方式二:完整配置示例
{
"name": "Luchentech Tech",
"version": "0.0.1",
"schema": "v1",
"models": [
{
"name": "Luchentech Tech",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key",
"defaultCompletionOptions": {
"maxTokens": 4000,
"temperature": 0.7
},
"roles": ["chat", "edit", "apply", "embed"]
}
],
"context": {
"providers": [
{ "provider": "problems" },
{ "provider": "tree" },
{ "provider": "url" },
{ "provider": "search" },
{ "provider": "folder" },
{ "provider": "codebase" },
{ "provider": "web" }
]
}
}
方式三:多角色配置
{
"models": [
{
"name": "Chat Model",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key",
"roles": ["chat", "edit", "apply"]
},
{
"name": "Autocomplete Model",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key",
"roles": ["autocomplete"]
},
{
"name": "Embeddings Model",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key",
"roles": ["embed"]
}
]
}
方式四:旧版 Completions 端点
对于支持 /completions 但不支持 /chat/completions 的模型:
{
"models": [
{
"name": "Luchentech Tech",
"provider": "openai",
"model": "minimax/minimax-m2.5",
"apiBase": "https://api.luchentech.com/inference/v1",
"apiKey": "your-luchentech-key",
"useLegacyCompletionsEndpoint": true
}
]
}
1.2 故障排除
| 常见问题 | 解决方案 |
|---|---|
| 模型不在下拉列表中 | 验证 config.json 格式 |
| 不支持 Chat 模式 | 使用 useLegacyCompletionsEndpoint: true |