This commit is contained in:
Yasir Aris M 2024-08-14 10:24:39 +07:00 committed by GitHub
parent c03b732a30
commit c2c78d232d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ async def get_openai_stream_response(messages, bmsg):
await bmsg.edit_msg(html.escape(answer)) await bmsg.edit_msg(html.escape(answer))
await asyncio.sleep(1.5) await asyncio.sleep(1.5)
num = 0 num = 0
await bmsg.edit_msg(f"{html.escape(answer)}\n\n<b>Powered by:</b> <code>GPT 4o Mini</code>") await bmsg.edit_msg(f"{html.escape(answer)}\n\n<b>Powered by:</b> <code>GPT 4o Mini</code>")
except MessageTooLong: except MessageTooLong:
answerlink = await post_to_telegraph( answerlink = await post_to_telegraph(
False, "MissKaty ChatBot ", html.escape(f"<code>{answer}</code>") False, "MissKaty ChatBot ", html.escape(f"<code>{answer}</code>")