docs(continue): migrate integration config examples from deprecated config.json to config.yaml (#441)

This commit is contained in:
Cold Cat 2025-04-28 17:49:03 +08:00 committed by GitHub
parent 27f780b91c
commit 07c34383ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 65 additions and 61 deletions

View File

@ -6,39 +6,42 @@ An open-source autopilot in your IDE.
Continue will generate, refactor, and explain entire sections of code with LLMs.
## UI
![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd)
![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd)
## Integrate with DeepSeek API
config.json
Modify the `config.yaml` file to add the `DeepSeek` model configuration, replacing `YOUR_DEEPSEEK_API_KEY` with your DeepSeek API Key.
```json
{
"completionOptions": {
"BaseCompletionOptions": {
"temperature": 0.0,
"maxTokens": 256
}
},
"models": [
{
"title": "DeepSeek",
"model": "deepseek-chat",
"contextLength": 128000,
"apiKey": "REDACTED",
"provider": "openai",
"apiBase": "https://api.deepseek.com/beta"
}
],
"tabAutocompleteModel": {
"title": "DeepSeek",
"model": "deepseek-chat",
"apiKey": "REDACTED",
"provider": "openai",
"apiBase": "https://api.deepseek.com/beta"
},
...
* `~/.continue/config.yaml` (MacOS/Linux)
* `%USERPROFILE%\.continue\config.yaml` (Windows)
```yaml
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: DeepSeek
provider: deepseek
model: deepseek-chat
apiKey: YOUR_DEEPSEEK_API_KEY
apiBase: https://api.deepseek.com/beta
roles:
- chat
- edit
- apply
- summarize
- autocomplete
contextLength: 128000
defaultCompletionOptions:
temperature: 0.0
maxTokens: 256
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
```
![image](https://github.com/user-attachments/assets/30aca5ee-b1bc-4c01-a007-45bb229283dd)

View File

@ -8,38 +8,39 @@
![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd)
## 接入 DeepSeek API
config.json
修改 `config.yaml` 文件,添加 `DeepSeek` 模型配置,将 `YOUR_DEEPSEEK_API_KEY` 替换为你的 DeepSeek API Key。
```json
{
"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"
},
...
* `~/.continue/config.yaml` (MacOS/Linux)
* `%USERPROFILE%\.continue\config.yaml` (Windows)
```yaml
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: DeepSeek
provider: deepseek
model: deepseek-chat
apiKey: YOUR_DEEPSEEK_API_KEY
apiBase: https://api.deepseek.com/beta
roles:
- chat
- edit
- apply
- summarize
- autocomplete
contextLength: 128000
defaultCompletionOptions:
temperature: 0.0
maxTokens: 256
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
```
![image](https://github.com/user-attachments/assets/30aca5ee-b1bc-4c01-a007-45bb229283dd)