File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,24 @@ $ codegpt version
55
55
version: v0.4.3 commit: xxxxxxx
56
56
```
57
57
58
- 从源代码安装:
58
+ ### 从源码安装
59
+
60
+ 从源码安装:
59
61
60
62
``` sh
61
63
go install github.com/appleboy/CodeGPT/cmd/codegpt@latest
62
64
```
63
65
66
+ ### 使用 VSCode Devcontainer
67
+
68
+ 在 devcontainer.json 中添加 [ feature] ( https://github.com/kvokka/features/tree/main/src/codegpt ) :
69
+
70
+ ``` json
71
+ "features" : {
72
+ "ghcr.io/kvokka/features/codegpt:1" : {}
73
+ }
74
+ ```
75
+
64
76
## 设置
65
77
66
78
请先创建你的 OpenAI API Key。可以在 [ OpenAI 平台] ( https://platform.openai.com/account/api-keys ) 生成新的 API Key。
@@ -92,7 +104,7 @@ codegpt config set openai.api_key sk-xxxxxxx
92
104
| ** openai.proxy** | HTTP/HTTPS 客户端代理。 |
93
105
| ** openai.socks** | SOCKS 客户端代理。 |
94
106
| ** openai.timeout** | 默认 HTTP 超时时间是 ` 10s ` (十秒)。 |
95
- | ** openai.skip_verify** | 默认skip_verify 设置为 ` false ` ,可以将其更改为 ` true ` 以忽略 SSL 验证。 |
107
+ | ** openai.skip_verify** | 默认 skip_verify 设置为 ` false ` ,可以将其更改为 ` true ` 以忽略 SSL 验证。 |
96
108
| ** openai.max_tokens** | 默认最大 token 数是 ` 300 ` 。参见参考 [ max_tokens] ( https://platform.openai.com/docs/api-reference/completions/create#completions/create-max_tokens ) 。 |
97
109
| ** openai.temperature** | 默认温度是 ` 1 ` 。参见参考 [ temperature] ( https://platform.openai.com/docs/api-reference/completions/create#completions/create-temperature ) 。 |
98
110
| ** git.diff_unified** | 生成具有 ` <n> ` 行上下文的差异,默认是 ` 3 ` 。 |
Original file line number Diff line number Diff line change @@ -69,6 +69,16 @@ version: v0.4.3 commit: xxxxxxx
69
69
go install github.com/appleboy/CodeGPT/cmd/codegpt@latest
70
70
```
71
71
72
+ ### 使用 VSCode Devcontainer
73
+
74
+ 在 devcontainer.json 中添加 [ feature] ( https://github.com/kvokka/features/tree/main/src/codegpt ) :
75
+
76
+ ``` json
77
+ "features" : {
78
+ "ghcr.io/kvokka/features/codegpt:1" : {}
79
+ }
80
+ ```
81
+
72
82
## 設置
73
83
74
84
首先,創建您的 OpenAI API Key。 [ OpenAI 平台] ( https://platform.openai.com/account/api-keys ) 允許您生成新的 API Key。
@@ -98,7 +108,7 @@ codegpt config set openai.api_key sk-xxxxxxx
98
108
| ** openai.proxy** | HTTP/HTTPS 客戶端代理。 |
99
109
| ** openai.socks** | SOCKS 客戶端代理。 |
100
110
| ** openai.timeout** | 默認 HTTP 超時為 ` 10s ` (十秒)。 |
101
- | ** openai.skip_verify** | 默認 skip_verify 是 ` false ` 你可以改為 ` true ` 以忽略SSL驗證。 |
111
+ | ** openai.skip_verify** | 默認 skip_verify 是 ` false ` 你可以改為 ` true ` 以忽略 SSL 驗證。 |
102
112
| ** openai.max_tokens** | 默認最大 token 為 ` 300 ` 。請參閱參考 [ max_tokens] ( https://platform.openai.com/docs/api-reference/completions/create#completions/create-max_tokens ) 。 |
103
113
| ** openai.temperature** | 默認溫度為 ` 1 ` 。請參閱參考 [ temperature] ( https://platform.openai.com/docs/api-reference/completions/create#completions/create-temperature ) 。 |
104
114
| ** git.diff_unified** | 生成具有 ` <n> ` 行上下文的差異,默認為 ` 3 ` 。 |
You can’t perform that action at this time.
0 commit comments