Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API keys for MIT users #3237

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Fix API keys for MIT users #3237

merged 2 commits into from
Nov 25, 2024

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Nov 24, 2024

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.

Copy link

vercel bot commented Nov 24, 2024

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

@Weves Weves merged commit 7573416 into main Nov 25, 2024
13 checks passed
@Weves Weves deleted the fix-api-key-for-mit branch November 25, 2024 00:55
ahmadassaf pushed a commit to ahmadassaf/danswer that referenced this pull request Nov 25, 2024
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