Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/GPT3Discord/commit/7ba231473a5a300b758dc03ac8467a5de36ae81e You should set ROOT_URL correctly, otherwise the web may not work correctly.

Replace Human: in prompt with actual username

Roland de Boer 2 years ago
parent a0089d6613
commit 7ba231473a

@ -503,6 +503,12 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"):
new_prompt = prompt + "\nGPTie: "
from_context = isinstance(ctx, discord.ApplicationContext)
# Replace 'Human:' with the user's name
try:
new_prompt = new_prompt.replace("Human:", ctx.author.name + ":")
except AttributeError:
pass
try:
tokens = self.usage_service.count_tokens(new_prompt)

Loading…
Cancel
Save