Parcourir la source

Bumping token limits

Karol Sokolowski il y a 1 an
Parent
commit
f4aebdc2e8
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      chatgpt.go

+ 3 - 3
chatgpt.go

@@ -38,9 +38,9 @@ func New(ApiKey, UserId string, timeOut time.Duration) *ChatGPT {
 		client:         gogpt.NewClient(ApiKey),
 		ctx:            ctx,
 		userId:         UserId,
-		maxQuestionLen: 1024, // 最大问题长度
-		maxAnswerLen:   1024, // 最大答案长度
-		maxText:        4096, // 最大文本 = 问题 + 回答, 接口限制
+		maxQuestionLen: 1024,  // 最大问题长度
+		maxAnswerLen:   4096,  // 最大答案长度
+		maxText:        16384, // 最大文本 = 问题 + 回答, 接口限制
 		timeOut:        timeOut,
 		doneChan:       timeOutChan,
 		cancel: func() {