Skip to content

Custom Template Example

Prompty can use custom templates for responses.

Refer to the basic_mustache.prompty file for more examples.

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
---
name: Custom Template Example
description: A prompt that uses a custom template
authors:
  - example_author
model:
  api: chat
  configuration:
    azure_deployment: gpt-35-turbo
template:
  format: mustache
  parser: prompty
sample:
  question: What is the weather like today?
---
system:
You are a helpful assistant.
user:
{{question}}