From 07c34383ea9631f376865093ef260f547d4d1eba Mon Sep 17 00:00:00 2001 From: Cold Cat Date: Mon, 28 Apr 2025 17:49:03 +0800 Subject: [PATCH] docs(continue): migrate integration config examples from deprecated config.json to config.yaml (#441) --- docs/continue/README.md | 63 ++++++++++++++++++++------------------ docs/continue/README_cn.md | 63 +++++++++++++++++++------------------- 2 files changed, 65 insertions(+), 61 deletions(-) diff --git a/docs/continue/README.md b/docs/continue/README.md index 81cdfde..aeff973 100644 --- a/docs/continue/README.md +++ b/docs/continue/README.md @@ -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) diff --git a/docs/continue/README_cn.md b/docs/continue/README_cn.md index 7f0ec17..5f0d946 100644 --- a/docs/continue/README_cn.md +++ b/docs/continue/README_cn.md @@ -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) -