Merge branch 'master' into wechatmp

This commit is contained in:
JS00000
2023-04-05 00:37:09 +08:00
22 changed files with 391 additions and 56 deletions

View File

@@ -91,8 +91,8 @@ class ChatGPTBot(Bot,OpenAIImage):
"top_p":1,
"frequency_penalty":conf().get('frequency_penalty', 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
"presence_penalty":conf().get('presence_penalty', 0.0), # [-2,2]之间,该值越大则更倾向于产生不同的内容
"request_timeout": 120, # 请求超时时间
"timeout": 120, #重试超时时间,在这个时间内,将会自动重试
"request_timeout": conf().get('request_timeout', 120), # 请求超时时间openai接口默认设置为600对于难问题一般需要较长时间
"timeout": conf().get('request_timeout', 120), #重试超时时间,在这个时间内,将会自动重试
}
def reply_text(self, session:ChatGPTSession, session_id, api_key, retry_count=0) -> dict: