fix: Resolve issue with cognify router graph model default value
Resolve issue with default value for graph model in cognify endpoint Fix
This commit is contained in:
parent
dfcec5f41d
commit
63c3dceec6
1 changed files with 2 additions and 2 deletions
|
|
@ -5,11 +5,11 @@ from cognee.modules.users.models import User
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from cognee.modules.users.methods import get_authenticated_user
|
from cognee.modules.users.methods import get_authenticated_user
|
||||||
from fastapi import Depends
|
from fastapi import Depends
|
||||||
|
from cognee.shared.data_models import KnowledgeGraph
|
||||||
|
|
||||||
class CognifyPayloadDTO(BaseModel):
|
class CognifyPayloadDTO(BaseModel):
|
||||||
datasets: List[str]
|
datasets: List[str]
|
||||||
graph_model: Optional[BaseModel] = None
|
graph_model: Optional[BaseModel] = KnowledgeGraph
|
||||||
|
|
||||||
def get_cognify_router() -> APIRouter:
|
def get_cognify_router() -> APIRouter:
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue