forked from ryandotclair/practical-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelerator.yaml
106 lines (104 loc) · 3.42 KB
/
accelerator.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
accelerator:
displayName: "Practical AI"
description: "A practical guide for Spring Devs to start quickly in AI"
iconUrl: https://raw.githubusercontent.com/sample-accelerators/icons/master/icon-tanzu-light.png
tags:
- azure
- ai
options:
- name: name
label: "What is your name?"
display: true
required: true
- name: tmdbapi
label: "Enter the TMDB API token:"
description: "You can obtained a read-only TMDB API token here: https://www.themoviedb.org/settings/api/request"
display: true
required: true
- name: explainer
label: "Let's Customize this guide to your experience! Select which additional instructions you need."
inputType: checkbox
dataType: [string]
choices:
- text: "I'm new to Azure, explain the main Azure constructs"
value: "azure"
- text: "Walk me through installing the az CLI tool"
value: "az"
- text: "Explain Azure Spring Apps Enterprise and how to deploy one"
value: "asae"
- text: "Explain Azure Cache for Redis and how to deploy one"
value: "redis"
- text: "Explain Azure OpenAI and how to deploy a model"
value: "openai"
display: true
required: false
engine:
merge:
- name: AZURE
type: Combo
onConflict: Append
merge:
- include: ['**/*.java','**/*.ts','**/*.html','**/*.idx','**/*.csv','**/*.pack','**/*.png','**/*.rev','**/*.st','**/*.jpg','**/*.tsx','**/*.xml','**/*.json','**/*.properties','**/*.css','**/*.cmd','**/mvnw']
- include: [ "lab.md" ]
chain:
- type: ReplaceText
substitutions:
- text: "[NAME]"
with: "#name"
- type: ReplaceText
substitutions:
- text: "[tmdbapi]"
with: "#tmdbapi.substring(0, 10).toLowerCase()"
- include: [ "azure.md" ]
condition: "#explainer.contains('azure')"
chain:
- type: RewritePath
rewriteTo: "'lab.md'"
- include: [ "az.md" ]
condition: "#explainer.contains('az')"
chain:
- type: RewritePath
rewriteTo: "'lab.md'"
- include: [ "asa-e.md" ]
condition: "#explainer.contains('asae')"
chain:
- type: ReplaceText
substitutions:
- text: "[tmdbapi]"
with: "#tmdbapi.substring(0, 10).toLowerCase()"
- type: RewritePath
rewriteTo: "'lab.md'"
- include: [ "redis.md" ]
condition: "#explainer.contains('redis')"
chain:
- type: ReplaceText
substitutions:
- text: "[tmdbapi]"
with: "#tmdbapi.substring(0, 10).toLowerCase()"
- type: RewritePath
rewriteTo: "'lab.md'"
- include: [ "openai.md" ]
condition: "#explainer.contains('openai')"
chain:
- type: ReplaceText
substitutions:
- text: "[tmdbapi]"
with: "#tmdbapi.substring(0, 10).toLowerCase()"
- type: RewritePath
rewriteTo: "'lab.md'"
- include: [ "bottom.md" ]
chain:
- type: ReplaceText
substitutions:
- text: "[NAME]"
with: "#name"
- type: ReplaceText
substitutions:
- text: "[tmdbapi]"
with: "#tmdbapi.substring(0, 10).toLowerCase()"
- type: ReplaceText
substitutions:
- text: "[tmdbapitoken]"
with: "#tmdbapi"
- type: RewritePath
rewriteTo: "'lab.md'"