[add] 群組羽球功能

This commit is contained in:
建喵 2023-01-31 09:46:33 +08:00
parent 570c0443d4
commit 38d4f5e432
2 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,10 @@ export default class MessageClass {
return await this.User(event); return await this.User(event);
} }
case "group": case "group": {
return await this.Group(event);
}
default: default:
break; break;
} }

View File

@ -15,7 +15,7 @@ export default class OpenAI {
// tslint:disable-next-line:typedef // tslint:disable-next-line:typedef
const response = await openai.createCompletion({ const response = await openai.createCompletion({
model: "text-davinci-003", model: "text-davinci-003",
prompt: "人類" + msg, prompt: "" + msg,
temperature: 0.7, temperature: 0.7,
max_tokens: 256, max_tokens: 256,
top_p: 1, top_p: 1,