This commit is contained in:
xds
2026-02-03 09:37:03 +03:00
parent e79b191463
commit ea3f50db50

View File

@@ -375,7 +375,10 @@ async def handle_text(message: Message, gemini: GoogleAdapter, state: FSMContext
async def gen_start_text(message: Message, gemini: GoogleAdapter, state: FSMContext, dao: DAO, bot: Bot, async def gen_start_text(message: Message, gemini: GoogleAdapter, state: FSMContext, dao: DAO, bot: Bot,
char_id: str = None) -> str: char_id: str = None) -> str:
await bot.send_chat_action(message.chat.id, "typing") await bot.send_chat_action(message.chat.id, "typing")
prompt = message.text prompt = ("Use a TELEGRAM HTML formatting. If you write a prompt use <pre> tag.\n\n"
"PROMPT:\n\n",
message.text,
'\n\n')
if char_id: if char_id:
char = await dao.chars.get_character(message.chat.id) char = await dao.chars.get_character(message.chat.id)
prompt += char.character_bio prompt += char.character_bio