Update to Chat Template for .items() collision w/ user dicts.

#8
by Bennybo - opened
Arcee AI org

Replace .items() usage when iterating over user-supplied mappings. The old template called .items() on tool.parameters.properties and tool_call.arguments, which can fail when those mappings contain a key literally named "items". In that case, the template runtime may resolve mapping.items to the "items" entry instead of the mapping method, causing prompt rendering to fail with object is not callable.

annekethvij changed pull request status to merged

Sign up or log in to comment