-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblock.yaml
More file actions
57 lines (48 loc) · 1.47 KB
/
Copy pathblock.yaml
File metadata and controls
57 lines (48 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# block.yaml — Chat building block manifest
# Adds Azure OpenAI chat completions to an existing application.
#
# Usage: azd add chat
name: chat
version: 1.0.0
description: >
Add Azure OpenAI chat completions to your existing app. Provisions an Azure OpenAI
resource with a chat model deployment and provides a drop-in client library for
Python (FastAPI, Flask, or standalone). Uses managed identity (keyless auth) by default.
provides:
- AZURE_OPENAI_ENDPOINT # https://<name>.openai.azure.com
- AZURE_OPENAI_CHAT_DEPLOYMENT # Model deployment name (e.g., gpt-4o-mini)
- AZURE_OPENAI_API_VERSION # API version (e.g., 2024-12-01-preview)
- AZURE_OPENAI_RESOURCE_NAME # Azure OpenAI account name (for dependent blocks)
requires: [] # Self-contained — no dependencies on other blocks.
dependencies: []
infra:
module: infra/chat.bicep
parameters: infra/chat.parameters.json
code:
python:
path: code/python
install: pip install -r code/python/requirements.txt
entrypoint: chat_client.py
min_version: "3.10"
hooks:
postprovision:
posix: hooks/postprovision.sh
windows: hooks/postprovision.ps1
tags:
- ai
- chat
- openai
- azure-openai
- conversational
- gpt
- completions
- managed-identity
- keyless
- python
- fastapi
metadata:
author: AI App Templates Team
license: MIT
repository: https://github.com/Azure-Samples/ai-app-templates
docs: docs/integration-guide.md
troubleshooting: ../TROUBLESHOOTING.md