mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复函数库节点为输出节点时类型错误
This commit is contained in:
parent
19b07e92f3
commit
845ee524c4
|
|
@ -27,7 +27,7 @@ def write_context(step_variable: Dict, global_variable: Dict, node, workflow):
|
|||
for key in step_variable:
|
||||
node.context[key] = step_variable[key]
|
||||
if workflow.is_result() and 'result' in step_variable:
|
||||
result = step_variable['result'] + '\n'
|
||||
result = str(step_variable['result']) + '\n'
|
||||
yield result
|
||||
workflow.answer += result
|
||||
node.context['run_time'] = time.time() - node.context['start_time']
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ def write_context(step_variable: Dict, global_variable: Dict, node, workflow):
|
|||
for key in step_variable:
|
||||
node.context[key] = step_variable[key]
|
||||
if workflow.is_result() and 'result' in step_variable:
|
||||
result = step_variable['result'] + '\n'
|
||||
result = str(step_variable['result']) + '\n'
|
||||
yield result
|
||||
workflow.answer += result
|
||||
node.context['run_time'] = time.time() - node.context['start_time']
|
||||
|
|
|
|||
Loading…
Reference in New Issue