-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
117 additions
and
43 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
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
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,28 @@ | ||
export const DefaultPrompt = `Follow the steps below to generate SVG code to meet my requirement which is delimited with triple backticks. | ||
- Requirement: \`\`\`{input}\`\`\` | ||
- Keywords: extract the keywords in the requirement. These keywords should be very helpful for generating the final SVG image. | ||
- Reasoning: explain steps to use svg to meet these keywords. Format your reasoning as the unordered list. Make your reasoning using the same language as the requirement. | ||
- SVG: generate the SVG code to meet the requirement refer to your reasoning. | ||
Format your response as a JSON object with "Keywords", "Reasoning", and "SVG" as the keys. | ||
Format "Keywords" value as string arrays. | ||
Format "Reasoning" value as a string. | ||
Ensure the response contains only the JSON object. | ||
`; | ||
|
||
export const GivenSVGPrompt = `Follow the steps below to update original SVG code to meet my requirement which is delimited with triple backticks. | ||
- Original SVG: {svg} | ||
- Requirement: \`\`\`{input}\`\`\` | ||
- Keywords: extract the keywords in the requirement. These keywords should be very helpful for generating the final SVG image. | ||
- Reasoning: explain steps to use svg to meet these keywords. Format your reasoning as the unordered list. Make your reasoning using the same language as the requirement. | ||
- SVG: generate the SVG code to meet the requirement refer to your reasoning. | ||
Format your response as a JSON object with "Keywords", "Reasoning", and "SVG" as the keys. | ||
Format "Keywords" value as string arrays. | ||
Format "Reasoning" value as a string. | ||
Ensure the response contains only the JSON object. | ||
`; |
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