Skip to content

Commit

Permalink
feat: change default model => gpt-4
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Jul 10, 2023
1 parent b67d563 commit 79d779d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ go 1.20
require (
github.com/go-zoox/chalk v1.0.2
github.com/go-zoox/chatbot-feishu v1.2.10
github.com/go-zoox/chatgpt-client v1.5.2
github.com/go-zoox/chatgpt-client v1.5.3
github.com/go-zoox/cli v1.2.0
github.com/go-zoox/core-utils v1.2.11
github.com/go-zoox/feishu v1.3.11
github.com/go-zoox/fetch v1.7.7
github.com/go-zoox/fs v1.3.13
github.com/go-zoox/logger v1.4.4
github.com/go-zoox/openai-client v1.4.2
github.com/go-zoox/openai-client v1.4.3
github.com/go-zoox/proxy v1.4.0
github.com/go-zoox/retry v1.0.3
github.com/go-zoox/zoox v1.10.6
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ github.com/go-zoox/chalk v1.0.2 h1:DCWft37fogmvqF37JdbGSLg28L/tQeA8u0lMvb62KOg=
github.com/go-zoox/chalk v1.0.2/go.mod h1:z5+qvE9nEJI5uT4px2tyoFa/xxkqf3CUo22KmXLKbNI=
github.com/go-zoox/chatbot-feishu v1.2.10 h1:HCbZOQr6u2u76mqjslXdKoecNCCki2ue+jkUof25Ajk=
github.com/go-zoox/chatbot-feishu v1.2.10/go.mod h1:DOYszjwta05Xg87acn2+CtmROLEqanHjwxROn4FpGzE=
github.com/go-zoox/chatgpt-client v1.5.2 h1:VDVEPDfbX3Qy2F9phYuP56Ujy+dw3Q6Hk9ZpOA7fmak=
github.com/go-zoox/chatgpt-client v1.5.2/go.mod h1:qXjI4zQ1zbS5D6pBUcF4oAtbKNP8rYEMSSoUJdLjhfM=
github.com/go-zoox/chatgpt-client v1.5.3 h1:p5nDMFigg/3HHdv5YWr2R4Atvc+yR7xkTENtMP8/4eA=
github.com/go-zoox/chatgpt-client v1.5.3/go.mod h1:rkk5/ABpRur+Qe1lljjEusOkDaHfXv+ck7MhVEKmRYg=
github.com/go-zoox/cli v1.2.0 h1:qBDHwcv2o5xgqGpYokxSszs8MVdNzaNZJJroAhpevFM=
github.com/go-zoox/cli v1.2.0/go.mod h1:p2VJxwXFJRp3+nt29/LihKTNzwAFRkIhnFpf3hyVrmE=
github.com/go-zoox/compress v1.0.1 h1:EyNxo5NscMLua5fvUdiGSF+BwhuTfMeyppu7OwKAW7Q=
Expand Down Expand Up @@ -102,8 +102,8 @@ github.com/go-zoox/logger v1.4.4 h1:050xlOkXfslwGuR57B0rA+toSXUo4UQqRCsyTw2n0UQ=
github.com/go-zoox/logger v1.4.4/go.mod h1:o7ddvv/gMoMa0TomPhHoIz11ZWRbQ92pF6rwYbOY3iQ=
github.com/go-zoox/lru v1.0.1 h1:AvRHxKEeEFSH9UXyfDQ5lj8nr66p6tJS3kVf/eTVyMg=
github.com/go-zoox/lru v1.0.1/go.mod h1:xxtYsRbJ2iJKEL4OIEZ6lk0xjuGJHHZmZZhGtH5qwv0=
github.com/go-zoox/openai-client v1.4.2 h1:l3ckmtpcXyzPxcmxznojABNUAlFjOgq+mELFOieo9HE=
github.com/go-zoox/openai-client v1.4.2/go.mod h1:h6vfyPajS1ScdALzDb+CwcSiMH3WKqScma0qH+SlRF8=
github.com/go-zoox/openai-client v1.4.3 h1:nnk1krN2Pvb9xzlxVN9/UVPpJ/Pt4XqFtXvCcHqmHmw=
github.com/go-zoox/openai-client v1.4.3/go.mod h1:h6vfyPajS1ScdALzDb+CwcSiMH3WKqScma0qH+SlRF8=
github.com/go-zoox/proxy v1.2.3/go.mod h1:T+gbngAtIgvambbYibAbzrjwdu8j5pduJdA2j6RYi94=
github.com/go-zoox/proxy v1.4.0 h1:vGY3/SxONBgVCdJ2bvpIlGyINnEHP/Cq5Dt2QWYxw94=
github.com/go-zoox/proxy v1.4.0/go.mod h1:HAVpVmXgniKNMHRwgtiKNxh9YgYnduAzUFe1fpVHVjo=
Expand Down
4 changes: 4 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func ServeFeishuBot(cfg *FeishuBotConfig) (err error) {
cfg.OfflineMessage = "robot is offline"
}

if cfg.OpenAIModel == "" {
cfg.OpenAIModel = openaiclient.ModelGPT_4
}

logger.Infof("###### Settings START #######")
logger.Infof("Serve Version: %s", Version)
logger.Infof("Serve at PORT: %d", cfg.Port)
Expand Down

0 comments on commit 79d779d

Please sign in to comment.