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: format strings when using code that includes `{` and `}` needs those to be escaped #15

Open rudolfolah opened 1 year ago

rudolfolah commented 1 year ago

When adding code from any language that uses braces such as JavaScript, the { needs to be escaped. Alternatively, there could be an option to skip the format-string entirely and treat the prompt as already formatted.