Skip to content

fix: hide Ask AI when OPENROUTER_API_KEY is not set#563

Merged
berry-13 merged 1 commit into
mainfrom
fix/ai-chat-env-gate
Apr 21, 2026
Merged

fix: hide Ask AI when OPENROUTER_API_KEY is not set#563
berry-13 merged 1 commit into
mainfrom
fix/ai-chat-env-gate

Conversation

@berry-13
Copy link
Copy Markdown
Member

No description provided.

The floating Ask AI trigger was always rendered, even without an API key
configured — clicking it would only surface a 503. Gate the render on
the env var being present so unconfigured deployments don't expose a
broken entry point.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
librechat-ai Ready Ready Preview, Comment Apr 21, 2026 5:31pm

Request Review

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@berry-13 berry-13 merged commit d5db440 into main Apr 21, 2026
3 checks passed
@berry-13 berry-13 deleted the fix/ai-chat-env-gate branch April 21, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant