Browse Source

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 year ago
parent
commit
320e8f6553
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      agent/component/generate.py

+ 1
- 1
agent/component/generate.py View File

@@ -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():

Loading…
Cancel
Save