From b3e30197a6c8b8c3448946c270ff1854c6fc0b4c Mon Sep 17 00:00:00 2001 From: Rui Azevedo Date: Mon, 8 Jul 2024 10:39:49 +0100 Subject: [PATCH] fix, Use the correct template name for the prompt of the code repair task Part of #201 --- model/llm/llm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/llm/llm.go b/model/llm/llm.go index fa2caeb9..ae3f7961 100644 --- a/model/llm/llm.go +++ b/model/llm/llm.go @@ -106,7 +106,7 @@ type llmCodeRepairSourceFilePromptContext struct { } // llmCodeRepairSourceFilePromptTemplate is the template for generating an LLM code repair prompt. -var llmCodeRepairSourceFilePromptTemplate = template.Must(template.New("model-llm-generate-test-for-file-prompt").Parse(bytesutil.StringTrimIndentations(` +var llmCodeRepairSourceFilePromptTemplate = template.Must(template.New("model-llm-code-repair-source-file-prompt").Parse(bytesutil.StringTrimIndentations(` Given the following {{ .Language.Name }} code file "{{ .FilePath }}" with package "{{ .ImportPath }}" and a list of compilation errors, modify the code such that the errors are resolved. The response must contain only the source code and nothing else.