From 92c1e9a582531d2c830fa59e540e86fffcc4fd9e Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 1 Sep 2024 09:36:15 +0200 Subject: [PATCH] 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. --- .../appsettings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/aspnet/Elsa.Samples.AspNet.OrchardCoreIntegration/appsettings.json b/samples/aspnet/Elsa.Samples.AspNet.OrchardCoreIntegration/appsettings.json index e5df98e90..e945857ec 100644 --- a/samples/aspnet/Elsa.Samples.AspNet.OrchardCoreIntegration/appsettings.json +++ b/samples/aspnet/Elsa.Samples.AspNet.OrchardCoreIntegration/appsettings.json @@ -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": {