mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix
This commit is contained in:
parent
2e20b79959
commit
f67203bc47
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'))}"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue