capibawa / wumpus-gpt

ChatGPT-like Discord chatbot written in TypeScript and powered by OpenAI's `gpt-4` and `gpt-3.5-turbo` language models.
https://discord.com/api/oauth2/authorize?client_id=1054835849893793872&permissions=397284550656&scope=bot
MIT License
26 stars 18 forks source link

GPT Response Cut Off in Discord, Preventing Full Readability #6

Open warnyul opened 1 year ago

warnyul commented 1 year ago

Issue Description:

When using the wumpus-gpt bot on Discord, I have noticed that in certain cases, the response generated by GPT is too long and gets cut off, making it impossible to read the full response. This issue hampers effective communication and comprehension, as crucial information may be missing or incomplete.

Steps to Reproduce:

  1. Install and set up wumpus-gpt on a Discord server.

  2. Initiate a conversation or command that triggers GPT to generate a lengthy response. (/ask or /chat)

  3. Observe the response in Discord, where it is expected to be fully displayed.

Current Behavior:

Currently, when the generated response from GPT exceeds a certain length, Discord cuts off the response, leading to incomplete or truncated messages. As a result, users are unable to read the complete response, leading to confusion and loss of information.

Expected Behavior:

The expected behavior is that Discord should display the complete response generated by GPT, regardless of its length. Users should be able to view the full response, ensuring effective communication and comprehension within the Discord environment.

Additional Information:

Screenshots/Attachments:

Screenshot 2023-07-21 at 9 07 39 Screenshot 2023-07-21 at 9 07 25
warnyul commented 1 year ago

I understand how crucial it is to have the full response from GPT displayed in Discord without any truncation. One possible solution to address this problem could be implementing a mechanism where GPT splits the long response into multiple messages using discord.js library.

By breaking the response into multiple messages, each within the character limit allowed by Discord, we can ensure that the entire content remains readable. This approach would enable users to view the complete response seamlessly, avoiding any loss of information or confusion.

To implement this solution, you could consider the following steps:

By implementing this solution, users will be able to read the complete response from GPT without any truncation, enhancing the overall usability of the integration between GPT and Discord.

Please let me know if you need any further assistance or clarification.