mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 21:21:56 +03:00
10 lines
300 B
Python
10 lines
300 B
Python
from models.brain_entity import BrainEntity
|
|
from models.databases.supabase.brains import CreateBrainProperties
|
|
from models.settings import get_supabase_db
|
|
|
|
|
|
def create_brain(brain: CreateBrainProperties) -> BrainEntity:
|
|
supabase_db = get_supabase_db()
|
|
|
|
return supabase_db.create_brain(brain)
|