File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cognee/api/v1/cognify/routers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from fastapi import APIRouter
2- from typing import List
2+ from typing import List , Optional
33from pydantic import BaseModel
44from cognee .modules .users .models import User
55from fastapi .responses import JSONResponse
99
1010class CognifyPayloadDTO (BaseModel ):
1111 datasets : List [str ]
12- graph_model : BaseModel
12+ graph_model : Optional [ BaseModel ] = None
1313
1414def get_cognify_router () -> APIRouter :
1515 router = APIRouter ()
1616
1717 @router .post ("/" , response_model = None )
18- async def cognify (payload : CognifyPayloadDTO , user : User = Depends (get_authenticated_user ), graph_model : BaseModel = None ):
18+ async def cognify (payload : CognifyPayloadDTO , user : User = Depends (get_authenticated_user )):
1919 """ This endpoint is responsible for the cognitive processing of the content."""
2020 from cognee .api .v1 .cognify .cognify_v2 import cognify as cognee_cognify
2121 try :
You can’t perform that action at this time.
0 commit comments