Update model references in ask command to use the latest version and clean up web search option handling

This commit is contained in:
2025-02-06 20:00:24 -05:00
parent a6eec68753
commit 566a6784c8
2 changed files with 6 additions and 8 deletions
+3 -5
View File
@@ -28,9 +28,7 @@ module.exports = {
.setName('websearch')
.setDescription('Enable web search for more up-to-date information')
.setRequired(false),
)
// Only show the websearch option if overrides are allowed
.setDMPermission(false),
),
async execute(interaction) {
await interaction.deferReply();
@@ -49,8 +47,8 @@ module.exports = {
'https://openrouter.ai/api/v1/chat/completions',
{
model: webSearchEnabled
? 'google/gemini-2.0-flash-exp:free:online'
: 'google/gemini-2.0-flash-exp:free',
? 'google/gemini-2.0-flash-001:online'
: 'google/gemini-2.0-flash-001',
messages: [
{
role: 'system',