Hello, on chatgpt, we have an option to highlight the response and click on the “quote” symbol over highlighted response - that allows us to ask questions using that specific text in context of original response.
Is there any way to have something similar via API?
You can just present such a method in your user interface (some JavaScript or other interactive awareness of the selection, or a context menu option), and pass it back to your chat API which is accepting user input.
You might wrap it in more plausible quote container when adding it to user message, such as: I highlight this part of your response (from {N} messages ago), for further discussion: ‘’‘{quoted_text}\n\n’‘’. Then filter it for length or place into more container if needed.