mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-21 13:21:30 +03:00
9aaedcff51
* 🗃️ Rename users table into user_daily_usage * 💥 replace User model with UserIdentity model * 🗃️ New UserDailyUsage class for database interaction * 🐛 fix daily requests rate limiting per user * 🐛 fix user stats and properties update * ✏️ add typing and linting * 🚚 rename user_dialy_usage Class into user_usage & requests_count into daily_requests_count * 🚑 fix some rebase errors
23 lines
784 B
Python
23 lines
784 B
Python
from .brain_entity import BrainEntity, MinimalBrainEntity
|
|
from .brains import Brain
|
|
from .brains_subscription_invitations import BrainSubscription
|
|
from .chat import Chat, ChatHistory
|
|
from .chats import ChatMessage, ChatQuestion
|
|
from .files import File
|
|
from .prompt import Prompt, PromptStatusEnum
|
|
from .settings import (BrainRateLimiting, BrainSettings, LLMSettings,
|
|
get_documents_vector_store, get_embeddings,
|
|
get_supabase_client, get_supabase_db)
|
|
from .user_identity import UserIdentity
|
|
from .user_usage import UserUsage
|
|
|
|
# TODO uncomment the below import when start using SQLalchemy
|
|
# from .sqlalchemy_repository import (
|
|
# User,
|
|
# Brain,
|
|
# BrainUser,
|
|
# BrainVector,
|
|
# BrainSubscriptionInvitation,
|
|
# ApiKey
|
|
# )
|