mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2025-10-07 00:52:52 +08:00
Revert "feat: 同步OpenAI更新,更新0613模型及3.5 16K模型 及 修复stream模式引入的两个bug" (#256)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user