浏览代码

fix generate string join issue (#2983)

### What problem does this PR solve?

#2921

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu 1年前
父节点
当前提交
320e8f6553
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      agent/component/generate.py

+ 1
- 1
agent/component/generate.py 查看文件

@@ -108,7 +108,7 @@ class Generate(ComponentBase):
if "content" not in out.columns:
kwargs[para["key"]] = "Nothing"
else:
kwargs[para["key"]] = " - " + "\n - ".join(out["content"])
kwargs[para["key"]] = " - "+"\n - ".join([o if isinstance(o, str) else str(o) for o in out["content"]])

kwargs["input"] = input
for n, v in kwargs.items():

正在加载...
取消
保存