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

input_schema endpoint called multiple times at startup

pmosconi opened this issue · comments

The Langchain langserve React adapter application sample (https://docs.nlkit.com/nlux/examples/langchain-langserve-adapter) calls the input_schema endpoint multiple times at startup.
To be precise: 7 in dev mode and 4 when deployed (the difference is probably due to React strict mode).
Why is that?
Is it possible to avoid it?

Thanks and I really appreciate the library!