File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 66 userName: string
77 isActive: boolean
88---
9- <<<dotprompt: role: system>>>
9+ {{ role " system"}}
1010You are a helper.
1111
12- <<<dotprompt: role: user>>>
12+ {{ role " user"}}
1313Hello {{userName}}!
1414
1515{{!
Original file line number Diff line number Diff line change @@ -31,27 +31,27 @@ config:
3131 topK: 40
3232 topP: 0.95
3333---
34- <<<dotprompt: role: system>>>
34+ {{ role " system"}}
3535You are a helpful AI assistant. You are an expert in {{context}}.
3636Here are some rules:
3737{{#each items}}
3838- {{this}}
3939{{/each}}
4040
41- <<<dotprompt: role: user>>>
41+ {{ role " user"}}
4242Hello, my name is {{name}}.
4343Can you analyze this image?
44- <<<dotprompt:media:url {{ imageUrl}} image/jpeg>>>
44+ {{media url= imageUrl mime=" image/jpeg"}}
4545
46- <<<dotprompt: role: model>>>
46+ {{ role " model"}}
4747I see an image. Let me think about it.
48- <<<dotprompt: section thought>>>
48+ {{ section " thought"}}
4949The user wants me to analyze the image provided at {{imageUrl}}.
5050I should look for key details.
5151
52- <<<dotprompt: role: user>>>
52+ {{ role " user"}}
5353Also, remember our past conversation:
54- <<<dotprompt: history>>>
54+ {{ history}}
5555
5656Please output the result in JSON format.
5757{{json this indent=2}}
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ input:
1616 The `{{> partialName }}` syntax should be distinct from standard tags.
1717}}
1818
19- <<<dotprompt: role: system>>>
19+ {{ role " system"}}
2020You are a helpful assistant.
2121
22- <<<dotprompt: role: user>>>
22+ {{ role " user"}}
2323Hello {{userName}}.
2424
2525Here are your items:
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ input:
1313output:
1414 format: "text"
1515---
16- <<<dotprompt: role: user>>>
16+ {{ role " user"}}
1717Please summarize the following text.
1818
1919{{text}}
2020
21- <<<dotprompt: role: model>>>
21+ {{ role " model"}}
2222Yes, I understand. I will summarize it.
You can’t perform that action at this time.
0 commit comments