L-a-r-t / chatgpt-to-notion

ChatGPT to Notion brings the cleverness of ChatGPT right into your Notion workspace!
https://chrome.google.com/webstore/detail/chatgpt-to-notion/oojndninaelbpllebamcojkdecjjhcle
320 stars 62 forks source link

bug: saving individual prompt/answer saves incorrect one #33

Closed gethinoakes closed 6 months ago

gethinoakes commented 10 months ago

Chrome extension version 1.8.1

If I click the pin icon to save a specific prompt/response, a previous prompt/response is saved instead of the one I clicked to save. It seems to save the previous by 3, for example:

prompt 1 answer 1 --> this one is saved

prompt 2 answer 2

prompt 3 answer 3 --> click save

I've tried it in a few different conversations, but I can only reproduce the issue in one of them, there are no errors in the logs.

L-a-r-t commented 10 months ago

Hi, thanks a lot for reporting this issue and the one related to full conversation save!

Regarding this issue in particular : OpenAI's backend sends conversations in a pretty non-structured (and not fully consistent) way compared to what's being presented to the user. Had my algorithm to format this been perfect, you wouldn't have faced this problem. Since ChatGPT's frontend always presents the conversations in the correct order, the enventual inconsistencies in how conversations are sent by OpenAI can be all taken into account, I'll work on improving that ASAP.

L-a-r-t commented 10 months ago

If you don't mind sharing the link to the conversation where this bug is occuring, that would also be of great help!

gethinoakes commented 9 months ago

@L-a-r-t thanks for the explanation, sounds like a bit of a nightmare! You'd think they'd make everything well structured. Sorry I would share the conversation but in this case it contains some personal information, if I can recreate it in another one I will share it.

L-a-r-t commented 6 months ago

Hi, I never took the time to get back to this issue, the previous patches should've fixed it. And another one is on it's way to further improve the algorithm on another point, so I'll mark this a solved.