Skip to content

Commit 0911cf9

Browse files
authored
fix: remove internal markup from examples (#545)
1 parent bb87a74 commit 0911cf9

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

examples/autocomplete.prompt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ input:
66
userName: string
77
isActive: boolean
88
---
9-
<<<dotprompt:role:system>>>
9+
{{role "system"}}
1010
You are a helper.
1111

12-
<<<dotprompt:role:user>>>
12+
{{role "user"}}
1313
Hello {{userName}}!
1414

1515
{{!

examples/features.prompt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@ config:
3131
topK: 40
3232
topP: 0.95
3333
---
34-
<<<dotprompt:role:system>>>
34+
{{role "system"}}
3535
You are a helpful AI assistant. You are an expert in {{context}}.
3636
Here are some rules:
3737
{{#each items}}
3838
- {{this}}
3939
{{/each}}
4040

41-
<<<dotprompt:role:user>>>
41+
{{role "user"}}
4242
Hello, my name is {{name}}.
4343
Can 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"}}
4747
I see an image. Let me think about it.
48-
<<<dotprompt:section thought>>>
48+
{{section "thought"}}
4949
The user wants me to analyze the image provided at {{imageUrl}}.
5050
I should look for key details.
5151

52-
<<<dotprompt:role:user>>>
52+
{{role "user"}}
5353
Also, remember our past conversation:
54-
<<<dotprompt:history>>>
54+
{{history}}
5555

5656
Please output the result in JSON format.
5757
{{json this indent=2}}

examples/partials.prompt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"}}
2020
You are a helpful assistant.
2121

22-
<<<dotprompt:role:user>>>
22+
{{role "user"}}
2323
Hello {{userName}}.
2424

2525
Here are your items:

go/example/example.prompt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ input:
1313
output:
1414
format: "text"
1515
---
16-
<<<dotprompt:role:user>>>
16+
{{role "user"}}
1717
Please summarize the following text.
1818

1919
{{text}}
2020

21-
<<<dotprompt:role:model>>>
21+
{{role "model"}}
2222
Yes, I understand. I will summarize it.

0 commit comments

Comments
 (0)