[PR #5134] [MERGED] docs: enable ai chat by env #22702

Closed
opened 2026-04-15 21:13:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5134
Author: @himself65
Created: 10/6/2025
Status: Merged
Merged: 10/6/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/06/log


📝 Commits (1)

  • f0f3b25 docs: enable ai chat by env

📊 Changes

2 files changed (+4 additions, -0 deletions)

View changed files

📝 docs/app/api/ai-chat/route.ts (+1 -0)
📝 docs/components/floating-ai-search.tsx (+3 -0)

📄 Description

Summary by cubic

Enable chat via the NEXT_PUBLIC_ENABLE_AI_CHAT env flag and hide the trigger when disabled. Add server-side logging for Gurubase API errors in the ai-chat route for easier debugging.

  • Migration
    • Set NEXT_PUBLIC_ENABLE_AI_CHAT to "true" to show the chat trigger.

🔄 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/5134 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/6/2025 **Status:** ✅ Merged **Merged:** 10/6/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/06/log` --- ### 📝 Commits (1) - [`f0f3b25`](https://github.com/better-auth/better-auth/commit/f0f3b258f7a8c4f8b0f41fa3cb04dc86527caf64) docs: enable ai chat by env ### 📊 Changes **2 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/api/ai-chat/route.ts` (+1 -0) 📝 `docs/components/floating-ai-search.tsx` (+3 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Enable chat via the NEXT_PUBLIC_ENABLE_AI_CHAT env flag and hide the trigger when disabled. Add server-side logging for Gurubase API errors in the ai-chat route for easier debugging. - **Migration** - Set NEXT_PUBLIC_ENABLE_AI_CHAT to "true" to show the chat trigger. <!-- 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-15 21:13:32 -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#22702