chore: updates mutable default param

This commit is contained in:
hajdul88 2025-09-17 14:14:39 +02:00
parent e815a3fc14
commit d2c7980e83

View file

@ -220,9 +220,11 @@ async def get_default_tasks( # TODO: Find out a better way to do this (Boris's
graph_model: BaseModel = KnowledgeGraph,
chunker=TextChunker,
chunk_size: int = None,
ontology_config: OntologyConfig = get_ontology_resolver(),
ontology_config: OntologyConfig = None,
custom_prompt: Optional[str] = None,
) -> list[Task]:
if ontology_config is None:
ontology_config = get_ontology_resolver()
default_tasks = [
Task(classify_documents),
Task(check_permissions_on_dataset, user=user, permissions=["write"]),