rudolfolah / chaincrafter

:hammer: Seamless integration and composability for large language model apps :paperclip:
https://rudolfolah.github.io/chaincrafter/
MIT License
7 stars 0 forks source link

Python: starting input vars are not being passed to all prompts in a chain #4

Closed rudolfolah closed 11 months ago

rudolfolah commented 11 months ago

The current code will overwrite the starting input vars using the output of the previous prompt.

The fix is to update the input vars dictionary that is passed to the prompt that is being run. This requires that input var names are unique.