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. Continue will generate, refactor, and explain entire sections of code with LLMs.
## UI ## 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 ## 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 * `~/.continue/config.yaml` (MacOS/Linux)
{ * `%USERPROFILE%\.continue\config.yaml` (Windows)
"completionOptions": {
"BaseCompletionOptions": { ```yaml
"temperature": 0.0, name: Local Assistant
"maxTokens": 256 version: 1.0.0
} schema: v1
}, models:
"models": [ - name: DeepSeek
{ provider: deepseek
"title": "DeepSeek", model: deepseek-chat
"model": "deepseek-chat", apiKey: YOUR_DEEPSEEK_API_KEY
"contextLength": 128000, apiBase: https://api.deepseek.com/beta
"apiKey": "REDACTED", roles:
"provider": "openai", - chat
"apiBase": "https://api.deepseek.com/beta" - edit
} - apply
], - summarize
"tabAutocompleteModel": { - autocomplete
"title": "DeepSeek", contextLength: 128000
"model": "deepseek-chat", defaultCompletionOptions:
"apiKey": "REDACTED", temperature: 0.0
"provider": "openai", maxTokens: 256
"apiBase": "https://api.deepseek.com/beta" 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) ![image](https://github.com/deepseek-ai/awesome-deepseek-integration/assets/59196087/094e9dc8-03d0-493d-95fb-6129a42a35bd)
## 接入 DeepSeek API ## 接入 DeepSeek API
config.json 修改 `config.yaml` 文件,添加 `DeepSeek` 模型配置,将 `YOUR_DEEPSEEK_API_KEY` 替换为你的 DeepSeek API Key。
```json * `~/.continue/config.yaml` (MacOS/Linux)
{ * `%USERPROFILE%\.continue\config.yaml` (Windows)
"completionOptions": {
"BaseCompletionOptions": { ```yaml
"temperature": 0.0, name: Local Assistant
"maxTokens": 256 version: 1.0.0
} schema: v1
}, models:
"models": [ - name: DeepSeek
{ provider: deepseek
"title": "DeepSeek", model: deepseek-chat
"model": "deepseek-chat", apiKey: YOUR_DEEPSEEK_API_KEY
"contextLength": 128000, apiBase: https://api.deepseek.com/beta
"apiKey": "REDACTED", roles:
"provider": "deepseek", - chat
"apiBase": "https://api.deepseek.com/beta" - edit
} - apply
], - summarize
"tabAutocompleteModel": { - autocomplete
"title": "DeepSeek Coder", contextLength: 128000
"model": "deepseek-coder", defaultCompletionOptions:
"apiKey": "REDACTED", temperature: 0.0
"provider": "deepseek", maxTokens: 256
"apiBase": "https://api.deepseek.com/beta" 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)