🐛 fix(types.py): fix variable name in format method to correctly reference the 'artifacts' variable

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-10 16:29:39 -03:00
commit 43e69f1f45

View file

@ -225,7 +225,7 @@ class PromptVertex(Vertex):
# so the prompt format doesn't break
artifacts.pop("handle_keys", None)
try:
return self._built_object.format(**self.artifacts)
return self._built_object.format(**artifacts)
except KeyError:
return super()._built_object_repr()
else: