feat: add Ask AI docs chatbot powered by OpenRouter#546
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
5f0a6c9 to
eebb7cb
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
eebb7cb to
eedc790
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
eedc790 to
385ef64
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
385ef64 to
54a38f9
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
54a38f9 to
25f34e7
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
25f34e7 to
ad7eb89
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
ad7eb89 to
0049658
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
0049658 to
47c3d4e
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
47c3d4e to
a5b5f55
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
a5b5f55 to
9859e50
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
9859e50 to
d5856fe
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Floating 'Ask AI' button on every page opens a chat panel that searches the docs and answers questions using an LLM via OpenRouter. How it works: 1. User asks a question 2. LLM calls a `search` tool that does full-text search across all 290 MDX docs 3. Relevant doc chunks are returned as context 4. LLM generates a concise answer with links to the source pages Stack: - app/api/chat/route.ts — server route using Vercel AI SDK + OpenRouter provider - components/ai/AskAI.tsx — client chat UI using @ai-sdk/react useChat hook - Search index built from content/docs/ at startup (in-memory, no external DB) Config: - OPENROUTER_API_KEY — required, get one at https://openrouter.ai/keys - OPENROUTER_MODEL — optional, defaults to openai/gpt-5.4-nano ($0.20/1M in, $1.25/1M out) Dependencies added: ai, @ai-sdk/react, @openrouter/ai-sdk-provider
d5856fe to
f2ee076
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Floating 'Ask AI' button on every page opens a chat panel that searches the docs and answers questions using an LLM via OpenRouter.
How it works:
searchtool that does full-text search across all 290 MDX docsStack:
Dependencies added: ai, @ai-sdk/react, @openrouter/ai-sdk-provider