Misc changes
This commit is contained in:
parent
07b3c5dd6f
commit
bcc5bcdcb1
2 changed files with 2 additions and 4 deletions
|
@ -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!';
|
||||
|
|
|
@ -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))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue