From 38d4f5e4329f82f95aac5f13f15db1c891bc03c3 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Tue, 31 Jan 2023 09:46:33 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E7=BE=A4=E7=B5=84=E7=BE=BD=E7=90=83?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MessageClass.ts | 5 ++++- src/OpenAI.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MessageClass.ts b/src/MessageClass.ts index 6bbf80e..db22d2c 100644 --- a/src/MessageClass.ts +++ b/src/MessageClass.ts @@ -44,7 +44,10 @@ export default class MessageClass { return await this.User(event); } - case "group": + case "group": { + return await this.Group(event); + } + default: break; } diff --git a/src/OpenAI.ts b/src/OpenAI.ts index faad549..75a57ee 100644 --- a/src/OpenAI.ts +++ b/src/OpenAI.ts @@ -15,7 +15,7 @@ export default class OpenAI { // tslint:disable-next-line:typedef const response = await openai.createCompletion({ model: "text-davinci-003", - prompt: "人類:" + msg, + prompt: "你:" + msg, temperature: 0.7, max_tokens: 256, top_p: 1,