From cf2da03fec1293d3879227ef436a174de6b72b3c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 20 Aug 2024 13:19:04 +0900 Subject: [PATCH] system.prompt: add \n Signed-off-by: Akihiro Suda --- pkg/generator/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/generator/generator.go b/pkg/generator/generator.go index c4f1897..c9fe115 100644 --- a/pkg/generator/generator.go +++ b/pkg/generator/generator.go @@ -173,7 +173,7 @@ The input is similar to [Trivy](https://github.com/aquasecurity/trivy)'s JSON, b ### Output format If you find negligible vulnerabilities, print a JSON map formatted and indented as follows: ` - systemPrompt += "```json\n" + llmOutputExample + "\n```" + systemPrompt += "```json\n" + llmOutputExample + "\n```\n" systemPrompt += "* `confidence` (0.0-1.0): higher value if you are confident with the answer.\n" systemPrompt += "* `reason`: the reason why you think the vulnerability is negligible. Should be unique, descriptive, and in 2 or 3 sentences.\n" systemPrompt += "Do not include non-negligible vulnerabilities in the result.\n"