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,
.
Comments
Comment #2
anup.sinha commentedHi @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 GPT 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. So now it will have the same line breaks as OpenAI API output but the response doesn't send any styling or layout as we see in ChatGPT portal. It's because ChatGPT doesn't have any API yet, the API which we are using is GPT3 or OpenAI API. Hopefully they will release APIs for ChatGPT as well in future, so that we can have the same styling along with line breaks.
Please validate it and confirm.
Thanks & Regards,
Anup
Comment #3
anup.sinha commented