support plugins

This commit is contained in:
JS00000
2023-03-27 23:39:33 +08:00
parent a7900d4b2c
commit 45a131aa0d
2 changed files with 109 additions and 17 deletions

View File

@@ -86,6 +86,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, #重试超时时间,在这个时间内,将会自动重试
}
def reply_text(self, session:ChatGPTSession, session_id, retry_count=0) -> dict: