Skip to content

Commit

Permalink
feat: Report fixes as commit comment + code suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Jun 26, 2023
1 parent 79228f1 commit 47e2198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/commands/fixFinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export async function fixFinding(finding: ResolvedFinding, openAI: OpenAIApi) {
role: 'user' as ChatCompletionRequestMessageRoleEnum,
}));
userMessages.push({
content: `Decribe the problem and suggest how to fix it, using diff / patch format for code suggestions${
language ? ' in ' + language : ''
}`,
content: `Describe the problem in the style of a code review comment, then suggest a fixed version of the code by generating one or more complete ${
language ? language : ''
} functions`,
role: 'user' as ChatCompletionRequestMessageRoleEnum,
});

Expand Down
6 changes: 3 additions & 3 deletions src/commands/fixTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ async function fixFailedTest(appmapLoader: AppMapLoader, openAI: OpenAIApi) {
);

userMessages.push({
content: `Decribe the problem and suggest how to fix it, using diff / patch format for code suggestions${
language ? ' in ' + language : ''
}`,
content: `Analyze the problem, then provide a fixed version of the code, by generating one or more complete ${
language ? language : ''
} functions`,
role: 'user' as ChatCompletionRequestMessageRoleEnum,
});

Expand Down

0 comments on commit 47e2198

Please sign in to comment.