chore: updates mutable default param
This commit is contained in:
parent
e815a3fc14
commit
d2c7980e83
1 changed files with 3 additions and 1 deletions
|
|
@ -220,9 +220,11 @@ async def get_default_tasks( # TODO: Find out a better way to do this (Boris's
|
||||||
graph_model: BaseModel = KnowledgeGraph,
|
graph_model: BaseModel = KnowledgeGraph,
|
||||||
chunker=TextChunker,
|
chunker=TextChunker,
|
||||||
chunk_size: int = None,
|
chunk_size: int = None,
|
||||||
ontology_config: OntologyConfig = get_ontology_resolver(),
|
ontology_config: OntologyConfig = None,
|
||||||
custom_prompt: Optional[str] = None,
|
custom_prompt: Optional[str] = None,
|
||||||
) -> list[Task]:
|
) -> list[Task]:
|
||||||
|
if ontology_config is None:
|
||||||
|
ontology_config = get_ontology_resolver()
|
||||||
default_tasks = [
|
default_tasks = [
|
||||||
Task(classify_documents),
|
Task(classify_documents),
|
||||||
Task(check_permissions_on_dataset, user=user, permissions=["write"]),
|
Task(check_permissions_on_dataset, user=user, permissions=["write"]),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue