Kevin Hu commited on
Commit
d832ef1
·
1 Parent(s): 9cbbedc

fix generate string join issue (#2983)

Browse files

### What problem does this PR solve?

#2921

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. agent/component/generate.py +1 -1
agent/component/generate.py CHANGED
@@ -108,7 +108,7 @@ class Generate(ComponentBase):
108
  if "content" not in out.columns:
109
  kwargs[para["key"]] = "Nothing"
110
  else:
111
- kwargs[para["key"]] = " - " + "\n - ".join(out["content"])
112
 
113
  kwargs["input"] = input
114
  for n, v in kwargs.items():
 
108
  if "content" not in out.columns:
109
  kwargs[para["key"]] = "Nothing"
110
  else:
111
+ kwargs[para["key"]] = " - "+"\n - ".join([o if isinstance(o, str) else str(o) for o in out["content"]])
112
 
113
  kwargs["input"] = input
114
  for n, v in kwargs.items():