Update ai information
This commit is contained in:
parent
7f079eb43b
commit
e46c4427cc
7 changed files with 31 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue