allen870619 / GuraDiscordBot

A Discord bot written in Python.
5 stars 3 forks source link

The message was cut off #58

Open jian-fu-hung opened 1 week ago

jian-fu-hung commented 1 week ago

ChatGPT's message was cut off by Discord

allen870619 commented 1 week ago

I'm sorry to hear that, but the message wasn't cut by Discord. Since the bot doesn't have Nitro, it can't send messages that are over than 2000 words, so I set the max token limit to 512. https://github.com/allen870619/GuraDiscordBot/blob/b3409b33c142093f93ddc42bb6bc56d932a53664/OpenAIHelper.py#L15

But the response experience was not as good as expected, GPT-4o answers are too detailed to be shown in a few words. I'll enhance it when I'm free.