title: 'System Prompt parameterization' sidebar_label: 'Parameterized Prompts' description: 'Learn how to update system prompts for each request with Jinja-styled templating.' sidebar_position: 7 pagination_prev: null pagination_next: null tags:
Spice supports defining system prompts for Large Language Models (LLM)s in the spicepod.
Example:
More than this, system prompts can use Jinja syntax to allow system prompts to be altered on each v1/chat/completion request. This involves three steps:
Add parameterized_prompt: enabled to the model.
Use Jinja syntax in the system_prompt parameter for the model in the spicepods.
Provide the required variables in v1/chat/completion via the .metadata field.