mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 20:36:08 +00:00
ruff2
This commit is contained in:
@@ -52,8 +52,7 @@ class DeerFlowAPIRunner(runner.RequestRunner):
|
|||||||
deerflow_client: client.AsyncDeerFlowClient
|
deerflow_client: client.AsyncDeerFlowClient
|
||||||
|
|
||||||
def __init__(self, ap: app.Application, pipeline_config: dict):
|
def __init__(self, ap: app.Application, pipeline_config: dict):
|
||||||
self.ap = ap
|
super().__init__(ap, pipeline_config)
|
||||||
self.pipeline_config = pipeline_config
|
|
||||||
|
|
||||||
cfg = self.pipeline_config['ai']['deerflow-api']
|
cfg = self.pipeline_config['ai']['deerflow-api']
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ class WeKnoraAPIRunner(runner.RequestRunner):
|
|||||||
weknora_client: client.AsyncWeKnoraClient
|
weknora_client: client.AsyncWeKnoraClient
|
||||||
|
|
||||||
def __init__(self, ap: app.Application, pipeline_config: dict):
|
def __init__(self, ap: app.Application, pipeline_config: dict):
|
||||||
self.ap = ap
|
super().__init__(ap, pipeline_config)
|
||||||
self.pipeline_config = pipeline_config
|
|
||||||
|
|
||||||
valid_app_types = ['chat', 'agent']
|
valid_app_types = ['chat', 'agent']
|
||||||
if self.pipeline_config['ai']['weknora-api']['app-type'] not in valid_app_types:
|
if self.pipeline_config['ai']['weknora-api']['app-type'] not in valid_app_types:
|
||||||
|
|||||||
Reference in New Issue
Block a user