refac: async db

This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-12 14:22:11 -05:00
1 parent b618d84065
commit 27169124f2
74 files changed
+4831 -4479

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ async def generate_embeddings(
# Access filtering
if not getattr(request.state, 'direct', False):
if not bypass_filter and user.role == 'user':
check_model_access(user, model)
await check_model_access(user, model)
# Ollama backend — use /api/embed which supports batch input natively
if model.get('owned_by') == 'ollama':