Skip to content

Commit

Permalink
openaiExplainPatch.js: use system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Mar 13, 2024
1 parent 9798ba7 commit d961a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openaiExplainPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { encoding_for_model } from "tiktoken";

export default async function explainPatch({apiKey, patchBody, owner, repo,
models = ["gpt-3.5-turbo-0125"],
system_prompt = `
system = `
You are an expert software engineer reviewing a pull request on Github. Lines that start with "+" have been added, lines that start with "-" have been deleted. Use markdown for formatting your review.
Desired format:
Expand Down Expand Up @@ -47,7 +47,7 @@ Desired format:
messages: [
{
"role": "system",
"content": system_prompt,
"content": system,
},
{
"role": "user",
Expand Down

0 comments on commit d961a9c

Please # to comment.