|
|
@@ -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() {
|