Skip to content

Schema: Type

The type property in the Prompty schema defines the type of the model or configuration. It can be chat, completion, etc.

Refer to the Prompty.yaml specification for more details.

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
---
name: Chat Example
description: A prompt that uses the chat API to answer questions
authors:
  - example_author
model:
  api: chat
  configuration:
    azure_deployment: gpt-35-turbo
sample:
  question: What is the weather like today?
---
system:
You are a helpful assistant.
user:
{{question}}