Skip to content

Azure Example

Prompty can be configured to use Azure models.

Refer to the basic.prompty file for more examples.

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
---
name: Azure Example
description: A prompt that uses an Azure model
authors:
  - example_author
model:
  api: chat
  configuration:
    type: azure_openai
    azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT}
    azure_deployment: gpt-35-turbo
sample:
  question: What is the weather like today?
---
system:
You are a helpful assistant.
user:
{{question}}