|
@ -82,8 +82,8 @@ async def generate_sync( |
|
|
complete_reply = complete_reply.removesuffix('<|endoftext|>').strip() |
|
|
complete_reply = complete_reply.removesuffix('<|endoftext|>').strip() |
|
|
complete_reply = complete_reply.replace(f"\n{bot.name}: ", " ") |
|
|
complete_reply = complete_reply.replace(f"\n{bot.name}: ", " ") |
|
|
complete_reply = complete_reply.replace(f"\n<BOT>: ", " ") |
|
|
complete_reply = complete_reply.replace(f"\n<BOT>: ", " ") |
|
|
complete_reply = complete_reply.replace(f"<BOT>", "{bot.name}") |
|
|
complete_reply = complete_reply.replace(f"<BOT>", f"{bot.name}") |
|
|
complete_reply = complete_reply.replace(f"<USER>", "You") |
|
|
complete_reply = complete_reply.replace(f"<USER>", f"You") |
|
|
return complete_reply.strip() |
|
|
return complete_reply.strip() |
|
|
else: |
|
|
else: |
|
|
continue |
|
|
continue |
|
|