Closed faymarie closed 3 months ago
Totals | |
---|---|
Change from base Build 10247553761: | 0.001% |
Covered Lines: | 6914 |
Relevant Lines: | 7670 |
template = init_parameters.get("template") if template: init_parameters["template"] = [ChatMessage.from_dict(d) for d in template]
You are right. Better to keep it None
! Pushed the change. We would be happy to have it in the upcoming release already! @julian-risch
Related Issues
When initialisizing
ChatPromptBuilder
componentfrom_dict
with value {"template": None}, we receive'NoneType' object is not iterable
.Proposed Changes:
Fix
from_dict
method.How did you test it?
Unit test
Notes for the reviewer
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.