Response formatting

Created on 11 February 2023, over 1 year ago
Updated 19 February 2023, over 1 year ago

Hello,

Excellent Drupal module and community contribution! I've noticed similar problems with other ChatGPT integrations (i.e. IDE plugins) - where the text formatting is completely lost in the response. For instance running 'ChatGPT Content Search' using your module in a node creation form returns flat text - no new lines or bullet points or code blocks, whereas doing the same search via https://chat.openai.com/chat its 'pretty printed' in a way that looks like a styled article.

I'm guessing this is a limitation of the response received via the API call today (using the latest text-davinci-003 model). Do you have any plans to work around this somehow, or other details you can share?

Ideally, it would be great to have the same styling/layout applied to the node body WYSIWYG as what we would see when querying directly via https://chat.openai.com/chat.

Please keep up the great work with your integrations here - this is a game changer for content creators, programmers and many others!

Best regards,
.

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States d0t101101

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @d0t101101
  • Status changed to Fixed over 1 year ago
  • 🇮🇳India anup.sinha Bengaluru

    Hi @d0t101101, many thanks for trying out my module and glad that you liked it. Also thanks for observing the formatting issue. I have investigated this issue further and found that ChatGPT API is actually sending the line breaks in the API response.

    So I have fixed that issue and released a new version of the module 1.0.2. Please validate it and confirm.

    Thanks & Regards,
    Anup

  • Status changed to Fixed over 1 year ago
Production build 0.71.5 2024