From dc4ffb96b3a7528ecda72613878aa8072883c023 Mon Sep 17 00:00:00 2001 From: cookeem Date: Fri, 3 Mar 2023 22:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8gpt-3.5-turbo=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat/service.go | 3 ++- go.mod | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chat/service.go b/chat/service.go index efba524..0bf86e6 100644 --- a/chat/service.go +++ b/chat/service.go @@ -78,7 +78,8 @@ func (api *Api) GetChatMessage(conn *websocket.Conn, cli *gogpt.Client, mutex *s var err error var strResp string req := gogpt.CompletionRequest{ - Model: gogpt.GPT3TextDavinci003, + // Model: gogpt.GPT3TextDavinci003, + Model: "gpt-3.5-turbo", MaxTokens: api.Config.MaxLength, Temperature: 0.6, Prompt: requestMsg, diff --git a/go.mod b/go.mod index f214cf1..53975c8 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-gpt3 v1.1.0 + github.com/sashabaranov/go-gpt3 v1.3.3 github.com/sirupsen/logrus v1.9.0 gopkg.in/yaml.v3 v3.0.1 )