Skip to content

Commit

Permalink
fix, Use the correct template name for the prompt of the code repair …
Browse files Browse the repository at this point in the history
…task

Part of #201
  • Loading branch information
ruiAzevedo19 committed Jul 8, 2024
1 parent 81e55e2 commit b3e3019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/llm/llm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b3e3019

Please sign in to comment.