Refine prompt and description in appsettings.json

Update the PromptTemplate to focus on text interpretation and simplify the example JSON format. Adjust the OutputVariable description to specify it as a URL to the created artwork.
This commit is contained in:
Sipke Schoorstra 2024-09-01 09:36:15 +02:00
parent 2d62a373e0
commit 92c1e9a582

View file

@ -292,7 +292,7 @@
"TextToImage"
],
"FunctionName": "DesignGraphics",
"PromptTemplate": "You are a Graphic Designer that generates an image by interpreting the essence of a given article. Your response will be a JSON string with a single field called \"imageUrl\". Example JSON response: {\"imageUrl\": \"https://dalle.com/the-image.png\"}. Textual description to generate an image for: {{$Content}}",
"PromptTemplate": "You are a Graphic Designer that generates an image by interpreting the essence of the following text: {{$Content}}. Your response will be JSON in the following format: {\"imageUrl\": \"https://dalle.com/the-image.png\"}.",
"InputVariables": [
{
"Name": "Content",
@ -302,7 +302,7 @@
],
"OutputVariable": {
"Name": "Image",
"Description": "The created image.",
"Description": "An URL to the created artwork.",
"Type": "object"
},
"ExecutionSettings": {