[PR #5193] [MERGED] docs: inkeep migration for chat completion #14085

Closed
opened 2026-04-13 09:18:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5193
Author: @Kinfe123
Created: 10/9/2025
Status: Merged
Merged: 10/11/2025
Merged by: @Bekacru

Base: canaryHead: feat/inkeep-migration


📝 Commits (7)

📊 Changes

5 files changed (+531 additions, -552 deletions)

View changed files

docs/app/api/chat/route.ts (+30 -0)
📝 docs/components/floating-ai-search.tsx (+171 -367)
docs/lib/chat/inkeep-qa-schema.ts (+47 -0)
📝 docs/package.json (+3 -0)
📝 pnpm-lock.yaml (+280 -185)

📄 Description

Summary by cubic

Migrated docs chat to Inkeep using the Vercel AI SDK. Adds a new edge /api/chat endpoint with streaming and link references, and updates the floating search UI with retry/abort.

  • New Features

    • New /api/chat (edge) using inkeep-qa-sonnet-4 (OpenAI-compatible).
    • provideLinks tool; renders reference links under answers.
    • Floating search uses useChat + DefaultChatTransport; adds Abort Answer and Retry; Clear Chat resets history.
    • Small UI tweaks and clearer role labels.
  • Migration

    • Requires INKEEP_API_KEY.
    • Adds @ai-sdk/openai-compatible, @ai-sdk/react, and ai dependencies; removes custom streaming/session logic.
    • Removed NEXT_PUBLIC_ENABLE_AI_CHAT gate (trigger is always available).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5193 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/inkeep-migration` --- ### 📝 Commits (7) - [`299be63`](https://github.com/better-auth/better-auth/commit/299be635291bcca67122bb9358632807734ef4b5) feat: inkeep migration - [`44e4e0b`](https://github.com/better-auth/better-auth/commit/44e4e0b53669696da595e68b587c53c0034916f7) lint - [`1c01d90`](https://github.com/better-auth/better-auth/commit/1c01d90afde1b0a9364eec1e4c6182ef7dd3a2fb) citation - [`1b19fde`](https://github.com/better-auth/better-auth/commit/1b19fdee32e796eb236e446d86eac8494c09d741) lint - [`8adc6fa`](https://github.com/better-auth/better-auth/commit/8adc6fa0e208f6d71a0f677a6f32ae80eba73644) suggestion and abort - [`aaab667`](https://github.com/better-auth/better-auth/commit/aaab6677432024f79934e9eb8f117e83b187ef20) Merge branch 'canary' into feat/inkeep-migration - [`847e21f`](https://github.com/better-auth/better-auth/commit/847e21f3509c20bc41b97f9219b4a1c8987d79bb) lock file ### 📊 Changes **5 files changed** (+531 additions, -552 deletions) <details> <summary>View changed files</summary> ➕ `docs/app/api/chat/route.ts` (+30 -0) 📝 `docs/components/floating-ai-search.tsx` (+171 -367) ➕ `docs/lib/chat/inkeep-qa-schema.ts` (+47 -0) 📝 `docs/package.json` (+3 -0) 📝 `pnpm-lock.yaml` (+280 -185) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Migrated docs chat to Inkeep using the Vercel AI SDK. Adds a new edge /api/chat endpoint with streaming and link references, and updates the floating search UI with retry/abort. - New Features - New /api/chat (edge) using inkeep-qa-sonnet-4 (OpenAI-compatible). - provideLinks tool; renders reference links under answers. - Floating search uses useChat + DefaultChatTransport; adds Abort Answer and Retry; Clear Chat resets history. - Small UI tweaks and clearer role labels. - Migration - Requires INKEEP_API_KEY. - Adds @ai-sdk/openai-compatible, @ai-sdk/react, and ai dependencies; removes custom streaming/session logic. - Removed NEXT_PUBLIC_ENABLE_AI_CHAT gate (trigger is always available). <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:18:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14085