This commit is contained in:
Yasir Aris M 2024-09-01 12:45:08 +07:00 committed by GitHub
parent 2e20b79959
commit f67203bc47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ async def get_openai_stream_response(is_stream, key, base_url, model, messages,
num = 0
await bmsg.edit_msg(f"{html.escape(answer)}\n\n<b>Powered by:</b> <code>GPT 4o</code>")
except MessageTooLong:
answerlink = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=html.escape(f"<code>{answer}</code>"), expiration="1week", formatting="markdown")
answerlink = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=answer, expiration="1week", formatting="markdown")
await bmsg.edit_msg(
strings("answers_too_long").format(answerlink=answerlink.get("full_url")),
disable_web_page_preview=True,

View file

@ -146,7 +146,7 @@ async def log_file(_, ctx: Message, strings):
try:
with open("MissKatyLogs.txt", "r") as file:
content = file.read()
pastelog = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=content, expiration="1week", formatting="sourcecode")
pastelog = await privatebinapi.send_async("https://bin.yasirweb.eu.org", text=content, expiration="1week", formatting="syntaxhighlighting")
await msg.edit_msg(
f"<a href='{pastelog['full_url']}'>Here the Logs</a>\nlog size: {get_readable_file_size(os.path.getsize('MissKatyLogs.txt'))}"
)