nlkitai / nlux

The π—£π—Όπ˜„π—²π—Ώπ—³π˜‚π—Ή Conversational AI JavaScript Library πŸ’¬ β€”Β UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧑 React, Next.js, and plain JavaScript ⭐️
https://docs.nlkit.com/nlux
Other
931 stars 48 forks source link

Modify Human prompt message #103

Open MichaelHefetz opened 5 days ago

MichaelHefetz commented 5 days ago

Hi,

It can be great if we could edit the human question (maybe only the last one for simplicity) and resubmit it to get an updated answer instead of the last returned one. Maybe some wrapper for the human message with added actions (it should support also the custom renderers)

Thanks, Michael

salmenus commented 2 days ago

Hi @MichaelHefetz feature released as part of 2.12 Doc example here: https://docs.nlkit.com/nlux/examples/edit-sent-messages Give it a try and let us know if this matches what you are looking for.

Thank you for the feature request for contributing πŸ™Œ I'll close this message in a few hours if no further feedback.