quivr/backend/repository/brain/create_brain.py
Mamadou DICKO 8172704b61
feat: add public brain page (#1230)
* feat: add brain library button

* feat(Field): add inputClassName key

* feat: add GET brains/public route

* feat: add brains library layout

* feat: add brain subscriber count
2023-09-21 09:35:53 +02:00

9 lines
260 B
Python

from models import BrainEntity, get_supabase_db
from models.databases.supabase.brains import CreateBrainProperties
def create_brain(brain: CreateBrainProperties) -> BrainEntity:
supabase_db = get_supabase_db()
return supabase_db.create_brain(brain)