Update ai information

This commit is contained in:
Aslan 2025-12-28 19:11:32 +01:00
parent 7f079eb43b
commit e46c4427cc
7 changed files with 31 additions and 11 deletions

View file

@ -3,7 +3,7 @@ import type { ICallbackStore } from "../types.js";
import { config } from "../../config.js";
import { getTextGemini, getImageGemini } from "../../services/ai/ai.js";
import { alts } from "./alts.js";
import type { IAdminInstructions } from "./types.js";
import type { IAdminInstructions, IAIAlt } from "./types.js";
import { getUserById, getUserName } from "../../helpers.js";
import { prices } from "./prices.js";
@ -38,7 +38,11 @@ const onAI = async (text: string, roomId: string, sender: string) => {
let instructions = {
prefferedLanguages: ["english", "slovak"],
adminText: config.app.ai.prompt,
alts: alts,
alts: alts.map((alt) => ({
keys: alt.keys,
alt: alt.alt,
information: user.information,
})),
} as IAdminInstructions;
const username = getUserName(user);