Streamlined Preferences Setup and Default Model (#148)

* Update: Streamlinded setup and Default Model

* Update: version increment
This commit is contained in:
Kevin Dang
2024-12-11 17:53:35 -08:00
committed by GitHub
parent d570a50d46
commit 6ac45afb13
9 changed files with 97 additions and 54 deletions

View File

@@ -73,7 +73,10 @@ export async function normalMessage(
}
} catch(error: any) {
console.log(`[Util: messageNormal] Error creating message: ${error.message}`)
sentMessage.edit(`**Response generation failed.**\n\nReason: ${error.message}`)
if (error.message.includes('try pulling it first'))
sentMessage.edit(`**Response generation failed.**\n\nReason: You do not have the ${model} downloaded. Ask an admin to pull it using the \`pull-model\` command.`)
else
sentMessage.edit(`**Response generation failed.**\n\nReason: ${error.message}`)
}
})