From 98c6931aa224cdd4e0b2213349c2ad73059e6240 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 12 Dec 2025 20:02:06 +0100 Subject: [PATCH] fix: make ontology key an optional param in cognify --- cognee/api/v1/cognify/routers/get_cognify_router.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cognee/api/v1/cognify/routers/get_cognify_router.py b/cognee/api/v1/cognify/routers/get_cognify_router.py index 4f1497e3c..a499b3ca3 100644 --- a/cognee/api/v1/cognify/routers/get_cognify_router.py +++ b/cognee/api/v1/cognify/routers/get_cognify_router.py @@ -42,7 +42,9 @@ class CognifyPayloadDTO(InDTO): default="", description="Custom prompt for entity extraction and graph generation" ) ontology_key: Optional[List[str]] = Field( - default=None, description="Reference to one or more previously uploaded ontologies" + default=None, + examples=[[]], + description="Reference to one or more previously uploaded ontologies", )