fix(upload): correct incorrect dictionary key usage (#9563)
This commit is contained in:
parent
1e829ceaf3
commit
faad247d85
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ class PromptTemplateParser:
|
|||
key = match.group(1)
|
||||
value = inputs.get(key, match.group(0)) # return original matched string if key not found
|
||||
|
||||
if remove_template_variables:
|
||||
if remove_template_variables and isinstance(value, str):
|
||||
return PromptTemplateParser.remove_template_variables(value, self.with_variable_tmpl)
|
||||
return value
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue