diff --git a/chat/service.go b/chat/service.go index 2bec4c7..16a8960 100644 --- a/chat/service.go +++ b/chat/service.go @@ -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, diff --git a/go.mod b/go.mod index bacbcbd..1119277 100644 --- a/go.mod +++ b/go.mod @@ -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 )