Revert "feat: 同步OpenAI更新,更新0613模型及3.5 16K模型 及 修复stream模式引入的两个bug" (#256)

This commit is contained in:
二丫讲梵
2023-06-21 16:57:20 +08:00
committed by GitHub
parent b903c76154
commit 49dd08fb81
11 changed files with 122 additions and 142 deletions

View File

@@ -41,6 +41,7 @@ func New(userId string) *ChatGPT {
public.Config.AzureOpenAIToken,
"https://"+public.Config.AzureResourceName+".openai."+
"azure.com/",
public.Config.AzureDeploymentName,
)
} else {
if public.Config.HttpProxy != "" {
@@ -60,8 +61,8 @@ func New(userId string) *ChatGPT {
ctx: ctx,
userId: userId,
maxQuestionLen: public.Config.MaxQuestionLen, // 最大问题长度
maxAnswerLen: public.Config.MaxAnswerLen, // 最大答案长度
maxText: public.Config.MaxText, // 最大文本 = 问题 + 回答, 接口限制
maxAnswerLen: public.Config.MaxAnswerLen, // 最大答案长度
maxText: public.Config.MaxText, // 最大文本 = 问题 + 回答, 接口限制
timeOut: public.Config.SessionTimeout,
doneChan: timeOutChan,
cancel: func() {