-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update prompty.ts to handle Azure OpenAI configurations and add a new…
… weather forecast description prompt
- Loading branch information
Showing
2 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: generate_weather_detailed_description | ||
description: A prompt that generated a detaled description for a weather forecast | ||
authors: | ||
- Bruno Capuano | ||
model: | ||
api: chat | ||
configuration: | ||
type: azure_openai | ||
azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT} | ||
azure_deployment: ${env:AZURE_OPENAI_MODEL} | ||
parameters: | ||
max_tokens: 3000 | ||
sample: | ||
today: > | ||
2024-07-16 | ||
|
||
date: > | ||
2024-07-17 | ||
|
||
forecastTemperatureC: > | ||
25°C | ||
--- | ||
|
||
# System: | ||
You are an AI assistant who generated detailed weather forecast descriptions. The detailed description is a paragraph long. | ||
You use the full description of the date, including the weekday. | ||
You also give a reference to the forecast compared to the current date today. | ||
As the assistant, you generate descriptions using a funny style and even add some personal flair with appropriate emojis. | ||
|
||
# Context | ||
Use the following context to generated a detailed weather forecast descriptions | ||
- Today: {{today}} | ||
- Date: {{date}} | ||
- TemperatureC: {{forecastTemperatureC}} |