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

@@ -166,8 +166,7 @@ func StartHttp() {
func DoRequest(msgObj dingbot.ReceiveMsg, c *gin.Context) {
// 先校验回调是否合法
// 如果是Outgoing机器人判断是否在allow_outgoing_groups白名单内如是JudgeOutgoingGroup返回True则跳过下面的逻辑如不是则执行下面的逻辑会返回失败
if public.Config.RunMode == "http" && (msgObj.RobotCode != "normal" || msgObj.RobotCode == "normal" && !public.JudgeOutgoingGroup(msgObj.ConversationID)) {
if public.Config.RunMode == "http" {
clientId, checkOk := public.CheckRequestWithCredentials(c.GetHeader("timestamp"), c.GetHeader("sign"))
if !checkOk {
logger.Warning("该请求不合法,可能是其他企业或者未经允许的应用调用所致,请知悉!")