Add smart models
This commit is contained in:
parent
b8cd35540f
commit
de6c5da464
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue