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
943 stars 48 forks source link

Update adapters to enable sending over the entire conversation #29

Closed salmenus closed 4 months ago

salmenus commented 4 months ago

Discussed in https://github.com/nluxai/nlux/discussions/28

Originally posted by **dragosmc** February 9, 2024 Hi, I'm trying to setup nlux w/ OpenAI to mimic the ChatGPT flow where gpt knows the previous conversation. As I could see there is no way to add previous messages to the current one to be sent, or I didn't find this functionality. I guess the idea would be to maintain a list of questions/answers and send the last `n` back to openai.
salmenus commented 4 months ago