mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-11 04:17:14 +00:00
fix: default Langflow tweaks to empty object when unset (#2519)
Co-authored-by: WODE25500 <318555974+WODE25500@users.noreply.github.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class LangflowAPIRunner(runner.RequestRunner):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 如果配置中有tweaks,则添加到负载中
|
# 如果配置中有tweaks,则添加到负载中
|
||||||
tweaks = json.loads(self.pipeline_config['ai']['langflow-api'].get('tweaks'))
|
tweaks = json.loads(self.pipeline_config['ai']['langflow-api'].get('tweaks') or '{}')
|
||||||
if tweaks:
|
if tweaks:
|
||||||
payload['tweaks'] = tweaks
|
payload['tweaks'] = tweaks
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user