gpt text formatting fix

This commit is contained in:
thedragonsinn
2025-01-27 15:46:14 +05:30
parent 84c17d4d5f
commit 9a7ef18dfc

View File

@@ -59,5 +59,5 @@ async def chat_gpt(bot: BOT, message: Message):
response = chat_completion.choices[0].message.content
await message.reply(
text=f"```{prompt}```**GPT**:\n{response}", parse_mode=ParseMode.MARKDOWN
text=f"```\n{prompt}```**GPT**:\n{response}", parse_mode=ParseMode.MARKDOWN
)