Add smart models

This commit is contained in:
Aslan 2026-01-24 04:58:23 -05:00
parent b8cd35540f
commit de6c5da464

View file

@ -48,7 +48,7 @@ const onAI = async (
const useSmartModel = text.startsWith("!aipro"); const useSmartModel = text.startsWith("!aipro");
let textMod = text.replace("!ai", "").trim(); let textMod = text.replace("!aipro", "").replace("!ai", "").trim();
let instructions = { let instructions = {
prefferedLanguages: ["english", "slovak"], prefferedLanguages: ["english", "slovak"],
users: alts.map((alt) => ({ users: alts.map((alt) => ({
@ -105,7 +105,11 @@ const onImageGen = async (text: string, roomId: string, sender: string) => {
const useSmartModel = text.startsWith("!imgpro"); const useSmartModel = text.startsWith("!imgpro");
let textMod = text.replace("!img", "").trim().toLowerCase(); let textMod = text
.replace("!imgpro", "")
.replace("!img", "")
.trim()
.toLowerCase();
alts.forEach((alt) => { alts.forEach((alt) => {
alt.keys.forEach((key) => { alt.keys.forEach((key) => {
textMod = textMod.replaceAll(key, alt.alt); textMod = textMod.replaceAll(key, alt.alt);