This commit is contained in:
cookeem
2023-03-22 11:22:06 +08:00
parent 8822742664
commit 00b3aa9bb8
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ func (api *Api) wsPingMsg(conn *websocket.Conn, chClose, chIsCloseSet chan int)
func (api *Api) GetChatMessage(conn *websocket.Conn, cli *openai.Client, mutex *sync.Mutex, requestMsg string) {
var err error
var strResp string
model := openai.GPT3Dot5Turbo0301
model := openai.GPT40314
req := openai.ChatCompletionRequest{
Model: model,
MaxTokens: api.Config.MaxLength,

2
go.mod
View File

@@ -7,7 +7,7 @@ require (
github.com/gin-gonic/gin v1.8.2
github.com/google/uuid v1.3.0
github.com/gorilla/websocket v1.5.0
github.com/sashabaranov/go-openai v1.4.1
github.com/sashabaranov/go-openai v1.5.4
github.com/sirupsen/logrus v1.9.0
gopkg.in/yaml.v3 v3.0.1
)