Skip to content

Commit 62a3c8d

Browse files
committed
docs: switch default model references to gpt-4o across the project
- Update model references from `gpt-3.5-turbo` to `gpt-4o` in README.md and README.zh-tw.md - Change default OpenAI model to `gpt-4o` in configuration settings - Modify example commands to use `gpt-4o` model instead of `gpt-3.5-turbo` - Update commit command flag default model to `gpt-4o` in commit.go Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 3e476eb commit 62a3c8d

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
English | [繁體中文](./README.zh-tw.md)
1010

11-
A CLI written in [Go](https://go.dev) that writes git commit messages or provides a code review summary for you using ChatGPT AI (gpt-3.5-turbo, gpt-4 model) and automatically installs a [git prepare-commit-msg hook](https://git-scm.com/docs/githooks).
11+
A CLI written in [Go](https://go.dev) that writes git commit messages or provides a code review summary for you using ChatGPT AI (gpt-4o, gpt-4 model) and automatically installs a [git prepare-commit-msg hook](https://git-scm.com/docs/githooks).
1212

1313
- [繁體中文介紹][1]
1414
- [繁體中文影片][2]
@@ -27,7 +27,7 @@ A CLI written in [Go](https://go.dev) that writes git commit messages or provide
2727
- Supports excluding files from the git diff command.
2828
- Supports commit message translation into another language (supports `en`, `zh-tw`, or `zh-cn`).
2929
- Supports socks proxy or custom network HTTP proxy.
30-
- Supports [model lists](https://github.com/appleboy/CodeGPT/blob/bf28f000463cfc6dfa2572df61e1b160c5c680f7/openai/openai.go#L18-L38) like `gpt-4`, `gpt-3.5-turbo`, etc.
30+
- Supports [model lists](https://github.com/appleboy/CodeGPT/blob/bf28f000463cfc6dfa2572df61e1b160c5c680f7/openai/openai.go#L18-L38) like `gpt-4`, `gpt-4o`, etc.
3131
- Supports generating a brief code review.
3232

3333
![code review](./images/code_review.png)
@@ -87,7 +87,7 @@ This will create a `.codegpt.yaml` file in your home directory ($HOME/.config/co
8787
| **openai.base_url** | Replace the default base URL (`https://api.openai.com/v1`). |
8888
| **openai.api_key** | Generate API key from [openai platform page](https://platform.openai.com/account/api-keys). |
8989
| **openai.org_id** | Identifier for this organization sometimes used in API requests. See [organization settings](https://platform.openai.com/account/org-settings). Only for `openai` service. |
90-
| **openai.model** | Default model is `gpt-3.5-turbo`, you can change to `gpt-4-turbo` or other custom model (Groq or OpenRouter provider). |
90+
| **openai.model** | Default model is `gpt-4o`, you can change to other custom model (Groq or OpenRouter provider). |
9191
| **openai.proxy** | HTTP/HTTPS client proxy. |
9292
| **openai.socks** | SOCKS client proxy. |
9393
| **openai.timeout** | Default HTTP timeout is `10s` (ten seconds). |
@@ -179,7 +179,7 @@ We can use the Llama3 model from the [ollama][41] API Service, please visit [her
179179
```sh
180180
# pull llama3 8b model
181181
ollama pull llama3
182-
ollama cp llama3 gpt-3.5-turbo
182+
ollama cp llama3 gpt-4o
183183
```
184184

185185
Try to use the `ollama` API Service.
@@ -188,7 +188,7 @@ Try to use the `ollama` API Service.
188188
curl http://localhost:11434/v1/chat/completions \
189189
-H "Content-Type: application/json" \
190190
-d '{
191-
"model": "gpt-3.5-turbo",
191+
"model": "gpt-4o",
192192
"messages": [
193193
{
194194
"role": "user",
@@ -247,7 +247,7 @@ codegpt commit --preview
247247
The commit message is shown below.
248248

249249
```sh
250-
Summarize the commit message use gpt-3.5-turbo model
250+
Summarize the commit message use gpt-4o model
251251
We are trying to summarize a git diff
252252
We are trying to summarize a title for pull request
253253
================Commit Summary====================
@@ -270,7 +270,7 @@ codegpt commit --lang zh-tw --preview
270270
Consider the following outcome:
271271

272272
```sh
273-
Summarize the commit message use gpt-3.5-turbo model
273+
Summarize the commit message use gpt-4o model
274274
We are trying to summarize a git diff
275275
We are trying to summarize a title for pull request
276276
We are trying to translate a git commit message to Traditional Chinese language
@@ -374,7 +374,7 @@ git commit
374374
375375
```sh
376376
$ git commit
377-
Summarize the commit message use gpt-3.5-turbo model
377+
Summarize the commit message use gpt-4o model
378378
We are trying to summarize a git diff
379379
We are trying to summarize a title for pull request
380380
================Commit Summary====================
@@ -409,7 +409,7 @@ codegpt review --lang zh-tw
409409
See the following result:
410410
411411
```sh
412-
Code review your changes using gpt-3.5-turbo model
412+
Code review your changes using gpt-4o model
413413
We are trying to review code changes
414414
PromptTokens: 1021, CompletionTokens: 200, TotalTokens: 1221
415415
We are trying to translate core review to Traditional Chinese language

README.zh-tw.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[English](./README.md) | 繁體中文
1010

11-
一個用 [Go](https://go.dev) 編寫的 CLI 工具,使用 ChatGPT AI(gpt-3.5-turbo, gpt-4 模型)為你撰寫 git 提交訊息或提供程式碼審查摘要,並自動安裝 [git prepare-commit-msg hook](https://git-scm.com/docs/githooks)
11+
一個用 [Go](https://go.dev) 編寫的 CLI 工具,使用 ChatGPT AI(gpt-4o, gpt-4 模型)為你撰寫 git 提交訊息或提供程式碼審查摘要,並自動安裝 [git prepare-commit-msg hook](https://git-scm.com/docs/githooks)
1212

1313
- [繁體中文介紹][1]
1414
- [繁體中文影片][2]
@@ -27,7 +27,7 @@
2727
- 支援從 git diff 命令中排除文件。
2828
- 支援將提交訊息翻譯成其他語言(支援 `en``zh-tw``zh-cn`)。
2929
- 支援 socks 代理或自訂網路 HTTP 代理。
30-
- 支援 [模型列表](https://github.com/appleboy/CodeGPT/blob/bf28f000463cfc6dfa2572df61e1b160c5c680f7/openai/openai.go#L18-L38),如 `gpt-4``gpt-3.5-turbo` 等。
30+
- 支援 [模型列表](https://github.com/appleboy/CodeGPT/blob/bf28f000463cfc6dfa2572df61e1b160c5c680f7/openai/openai.go#L18-L38),如 `gpt-4``gpt-4o` 等。
3131
- 支援生成簡要的程式碼審查。
3232

3333
![code review](./images/code_review.png)
@@ -87,7 +87,7 @@ codegpt config set openai.api_key sk-xxxxxxx
8787
| **openai.base_url** | 替換默認的基礎 URL (`https://api.openai.com/v1`)。 |
8888
| **openai.api_key** |[openai 平台頁面](https://platform.openai.com/account/api-keys) 生成 API 金鑰。 |
8989
| **openai.org_id** | 在 API 請求中有時使用的組織標識符。請參閱 [組織設置](https://platform.openai.com/account/org-settings)。僅適用於 `openai` 服務。 |
90-
| **openai.model** | 默認模型是 `gpt-3.5-turbo`,你可以更改為 `gpt-4-turbo` 或其他自訂模型(Groq 或 OpenRouter 提供者)。 |
90+
| **openai.model** | 默認模型是 `gpt-4o`,你可以更改為 `gpt-4-turbo` 或其他自訂模型(Groq 或 OpenRouter 提供者)。 |
9191
| **openai.proxy** | HTTP/HTTPS 客戶端代理。 |
9292
| **openai.socks** | SOCKS 客戶端代理。 |
9393
| **openai.timeout** | 默認 HTTP 超時為 `10s`(十秒)。 |
@@ -179,7 +179,7 @@ GroqCloud 目前支援[以下模型][32]:
179179
```sh
180180
# 拉取 llama3 8b 模型
181181
ollama pull llama3
182-
ollama cp llama3 gpt-3.5-turbo
182+
ollama cp llama3 gpt-4o
183183
```
184184

185185
嘗試使用 `ollama` API 服務。
@@ -188,7 +188,7 @@ ollama cp llama3 gpt-3.5-turbo
188188
curl http://localhost:11434/v1/chat/completions \
189189
-H "Content-Type: application/json" \
190190
-d '{
191-
"model": "gpt-3.5-turbo",
191+
"model": "gpt-4o",
192192
"messages": [
193193
{
194194
"role": "user",
@@ -247,7 +247,7 @@ codegpt commit --preview
247247
提交訊息如下所示。
248248

249249
```sh
250-
Summarize the commit message use gpt-3.5-turbo model
250+
Summarize the commit message use gpt-4o model
251251
We are trying to summarize a git diff
252252
We are trying to summarize a title for pull request
253253
================Commit Summary====================
@@ -270,7 +270,7 @@ codegpt commit --lang zh-tw --preview
270270
Consider the following outcome:
271271

272272
```sh
273-
Summarize the commit message use gpt-3.5-turbo model
273+
Summarize the commit message use gpt-4o model
274274
We are trying to summarize a git diff
275275
We are trying to summarize a title for pull request
276276
We are trying to translate a git commit message to Traditional Chinese language
@@ -374,7 +374,7 @@ git commit
374374
375375
```sh
376376
$ git commit
377-
Summarize the commit message use gpt-3.5-turbo model
377+
Summarize the commit message use gpt-4o model
378378
We are trying to summarize a git diff
379379
We are trying to summarize a title for pull request
380380
================Commit Summary====================
@@ -409,7 +409,7 @@ codegpt review --lang zh-tw
409409
請參閱以下結果:
410410
411411
```sh
412-
Code review your changes using gpt-3.5-turbo model
412+
Code review your changes using gpt-4o model
413413
We are trying to review code changes
414414
PromptTokens: 1021, CompletionTokens: 200, TotalTokens: 1221
415415
We are trying to translate core review to Traditional Chinese language

cmd/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func init() {
4848
commitCmd.PersistentFlags().BoolVar(&preview, "preview", false, "preview commit message")
4949
commitCmd.PersistentFlags().IntVar(&diffUnified, "diff_unified", 3,
5050
"generate diffs with <n> lines of context, default is 3")
51-
commitCmd.PersistentFlags().StringVar(&commitModel, "model", "gpt-3.5-turbo", "select openai model")
51+
commitCmd.PersistentFlags().StringVar(&commitModel, "model", "gpt-4o", "select openai model")
5252
commitCmd.PersistentFlags().StringVar(&commitLang, "lang", "en", "summarizing language uses English by default")
5353
commitCmd.PersistentFlags().StringSliceVar(&excludeList, "exclude_list", []string{},
5454
"exclude file from git diff command")

0 commit comments

Comments
 (0)