nlkitai / nlux

The 𝗣𝗼𝘄𝗲𝗿𝗳𝘂𝗹 Conversational AI JavaScript Library 💬 — UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧡 React, Next.js, and plain JavaScript ⭐️

Home Page:https://docs.nlkit.com/nlux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editing sent messages is adding extra new line

lohit8846 opened this issue · comments

I have noticed a bug in the edit sent message feature where a new line character is being added when hitting enter

https://docs.nlkit.com/nlux/examples/edit-sent-messages

I printed the prompt that was sent to confirm. Basically when editing I think we need to catch the enter key press and prevent new line similar to what is the for the input text box