Skip to content

Commit abc6e0c

Browse files
committed
fix: 修复嵌入应用的指定回复节点回复None的缺陷
--bug=1049643 --user=王孝刚 【应用】简单应用输出节点连接多个执行回复节点,回复节点引用简单应用的输出结果变量,执行后回复结果为None https://www.tapd.cn/57709429/s/1621456
1 parent 78cd949 commit abc6e0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/application/flow/step_node/application_node/impl/base_application_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def _write_context(node_variable: Dict, workflow_variable: Dict, node: INode, wo
1818
node.context['message_tokens'] = result.get('usage', {}).get('prompt_tokens', 0)
1919
node.context['answer_tokens'] = result.get('usage', {}).get('completion_tokens', 0)
2020
node.context['answer'] = answer
21+
node.context['result'] = answer
2122
node.context['question'] = node_variable['question']
2223
node.context['run_time'] = time.time() - node.context['start_time']
2324
if workflow.is_result(node, NodeResult(node_variable, workflow_variable)):

ui/src/workflow/icons/application-node-icon.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<AppAvatar
3-
v-if="isAppIcon(item.icon)"
3+
v-if="isAppIcon(item?.icon)"
44
shape="square"
55
:size="32"
66
style="background: none"
77
class="mr-8"
88
>
9-
<img :src="item.icon" alt="" />
9+
<img :src="item?.icon" alt="" />
1010
</AppAvatar>
1111
<AppAvatar
1212
v-else-if="item?.name"

0 commit comments

Comments
 (0)