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,