chat
style prompts and completion
style prompts.
Chat style prompts are a list of messages. This is the prompting style supported by most model APIs these days, and so this should generally be preferred.
Completion style prompts are just a string. This is an older style of prompting, and so mostly exists for legacy reasons.
is_logged_in
variable, but any nested variables you’ll need to specify yourself. Paste the following into inputs to ensure the above conditional prompt works:f-string
as the default template format, but you can switch to mustache
format in the prompt settings/template format section. mustache
gives you more flexibility around conditional variables, loops, and nested keys. For conditional variables, you’ll need to manually add json variables in the ‘inputs’ section. Read the documentationprompt_name:commit_hash
).
In the UI, you can compare a commit with its previous version by toggling the “diff” button in the top-right corner of the Commits tab.
dev
or prod
tags. This allows you to track which versions of prompts are used where.