Misc changes

This commit is contained in:
Atridad Lahiji 2023-06-15 23:21:08 -06:00
parent 07b3c5dd6f
commit bcc5bcdcb1
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,7 @@ export class UserCommand extends Command {
const chatCompletion = await openai.createChatCompletion({
model: 'gpt-3.5-turbo',
messages: [{ role: 'user', content: prompt }],
max_tokens: 1000
max_tokens: 420
});
const content = chatCompletion.data.choices[0].message?.content || 'ERROR!';

View file

@ -21,9 +21,7 @@ export class UserCommand extends Command {
builder //
.setName(this.name)
.setDescription(this.description)
.addStringOption((option) =>
option.setName('prompt').setDescription('You can ACTUALLY ask Himbot something! So cool!').setRequired(true)
)
.addStringOption((option) => option.setName('prompt').setDescription('Make a picture!').setRequired(true))
);
}