Skip to content

Commit

Permalink
fix generate string join issue (#2983)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#2921

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Oct 23, 2024
1 parent 89d5b24 commit 320e8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/component/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _run(self, history, **kwargs):
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():
Expand Down

0 comments on commit 320e8f6

Please sign in to comment.