This commit is contained in:
Typer_Body
2026-06-07 02:35:10 +08:00
parent 1fbfa868fb
commit fd896c6974
2 changed files with 2 additions and 4 deletions

View File

@@ -52,8 +52,7 @@ class DeerFlowAPIRunner(runner.RequestRunner):
deerflow_client: client.AsyncDeerFlowClient
def __init__(self, ap: app.Application, pipeline_config: dict):
self.ap = ap
self.pipeline_config = pipeline_config
super().__init__(ap, pipeline_config)
cfg = self.pipeline_config['ai']['deerflow-api']

View File

@@ -18,8 +18,7 @@ class WeKnoraAPIRunner(runner.RequestRunner):
weknora_client: client.AsyncWeKnoraClient
def __init__(self, ap: app.Application, pipeline_config: dict):
self.ap = ap
self.pipeline_config = pipeline_config
super().__init__(ap, pipeline_config)
valid_app_types = ['chat', 'agent']
if self.pipeline_config['ai']['weknora-api']['app-type'] not in valid_app_types: