danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://danswer.ai
Other
10.76k stars 1.35k forks source link

Fix API keys for MIT users #3237

Open Weves opened 10 hours ago

Weves commented 10 hours ago

Previously, the logic to actually check for an API key was in the EE version of optional_user_. This meant that for MIT users, the API keys would never work.

Additionally, in this PR I switched to use an async engine. Due to FastAPI Users, this flow must be async, and it's generally good practice to use async engines during async flows to avoid mistakenly blocking the event loop.

vercel[bot] commented 10 hours ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 24, 2024 2:38am