/ releasenotes / notes / remove-template-vars-invocation-kwargs-060f186fd1250fe4.yaml
remove-template-vars-invocation-kwargs-060f186fd1250fe4.yaml
 1  ---
 2  upgrade:
 3    - |
 4      This update impacts only those who have created custom invocation layers by subclassing PromptModelInvocationLayer.
 5      Previously, the invoke() method in your custom layer received all prompt template parameters (like query,
 6      documents, etc.) as keyword arguments. With this change, these parameters will no longer be passed in as keyword
 7      arguments. If you've implemented such a custom layer, you'll need to potentially update your code to accommodate
 8      this change.
 9  enhancements:
10    - |
11      Remove template variables from invocation layer kwargs