pl.run()
function handles input variables in the following ways:
release_year
variable will be ignored in the LLM request if it’s not part of the current template.
When you need to add new input variables to your prompt template, it’s important to keep your source code in sync with the template changes. This guide outlines the process for deploying these updates to your production environment.
prod
that uses only one input variable, favorite_movie
:
mood
variable to your prompt template:
mood
variable
new-var
) to the new version
prod
label to the most recent prompt version
prod
prompt version again and deploy:
new-var
label from the PromptLayer UI