fix: remove variable "max_result" not being used in the code

This commit is contained in:
roryhaung 2024-10-13 23:04:27 +08:00
parent f17089c123
commit e76a68a782
4 changed files with 0 additions and 5 deletions

View File

@ -44,7 +44,6 @@ class CSVScraperMultiGraph(AbstractGraph):
def __init__(self, prompt: str, source: List[str],
config: dict, schema: Optional[BaseModel] = None):
self.max_results = config.get("max_results", 3)
self.copy_config = safe_deepcopy(config)
self.copy_schema = deepcopy(schema)

View File

@ -44,7 +44,6 @@ class JSONScraperMultiGraph(AbstractGraph):
def __init__(self, prompt: str, source: List[str],
config: dict, schema: Optional[BaseModel] = None):
self.max_results = config.get("max_results", 3)
self.copy_config = safe_deepcopy(config)
self.copy_schema = deepcopy(schema)

View File

@ -43,8 +43,6 @@ class ScriptCreatorMultiGraph(AbstractGraph):
def __init__(self, prompt: str, source: List[str],
config: dict, schema: Optional[BaseModel] = None):
self.max_results = config.get("max_results", 3)
self.copy_config = safe_deepcopy(config)
self.copy_schema = deepcopy(schema)
super().__init__(prompt, config, source, schema)

View File

@ -45,7 +45,6 @@ class SmartScraperMultiConcatGraph(AbstractGraph):
def __init__(self, prompt: str, source: List[str],
config: dict, schema: Optional[BaseModel] = None):
self.max_results = config.get("max_results", 3)
self.copy_config = safe_deepcopy(config)
self.copy_schema = deepcopy(schema)