Skip to content

Commit 9e024e7

Browse files
committed
维护ReadMe
1 parent 55e9dc0 commit 9e024e7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ File -> Preferences -> Settings(文件 -> 首选项 -> 设置)
2222

2323
`Deep Seek Api Key`(DeepSeek API 密钥)里填写你在 DeepSeek API 获取的 Key。
2424

25+
#### 模型 API 和名称设置
26+
`CodeReDesign` 的配置中,你可以设置使用的模型 API 和名称。以下是默认选项和自定义方法:
27+
28+
1. **默认模型配置**
29+
- `deepseek-chat`:默认的聊天模型,适用于一般的代码重构和设计任务。
30+
- `deepseek-reasoner`:推理模型,适用于需要逻辑推理和复杂分析的代码任务。
31+
32+
2. **自定义模型配置**
33+
- 如果你需要使用自定义模型,可以在 `CodeReDesign` 的配置中选择 `custom` 选项,并填写以下信息:
34+
- **Custom DeepSeek Model Name**:自定义模型的名称。
35+
- **Custom DeepSeek API Base URL**:自定义模型的 API 基础 URL。
36+
37+
设置方法:
38+
- 打开 VSCode 的设置界面(File -> Preferences -> Settings)。
39+
- 搜索 `coderedesign`
40+
-`Model Configuration` 中选择 `custom`
41+
- 填写 `Custom DeepSeek Model Name``Custom DeepSeek API Base URL`
42+
2543
#### 指令:
2644
按下 `ctrl + shift + p` 打开指令菜单(Command Palette),有以下几个指令可用:
2745

@@ -82,6 +100,24 @@ Search for "coderedesign"
82100

83101
In the `Deep Seek Api Key`, enter the key you obtained from the DeepSeek API.
84102

103+
#### Model API and Name Configuration
104+
In the `CodeReDesign` configuration, you can set the model API and name. Here are the default options and how to customize them:
105+
106+
1. **Default Model Configuration**:
107+
- `deepseek-chat`: The default chat model, suitable for general code refactoring and design tasks.
108+
- `deepseek-reasoner`: The reasoning model, suitable for code tasks that require logical reasoning and complex analysis.
109+
110+
2. **Custom Model Configuration**:
111+
- If you need to use a custom model, you can select the `custom` option in the `CodeReDesign` configuration and fill in the following information:
112+
- **Custom DeepSeek Model Name**: The name of the custom model.
113+
- **Custom DeepSeek API Base URL**: The base URL of the custom model's API.
114+
115+
Setup Method:
116+
- Open VSCode settings (File -> Preferences -> Settings).
117+
- Search for "coderedesign".
118+
- Select `custom` in `Model Configuration`.
119+
- Fill in `Custom DeepSeek Model Name` and `Custom DeepSeek API Base URL`.
120+
85121
#### Commands:
86122
Press `ctrl + shift + p` to open the Command Palette, where the following commands are available:
87123

0 commit comments

Comments
 (0)