Skip to content

Commit

Permalink
fix: broken function & add new build
Browse files Browse the repository at this point in the history
  • Loading branch information
fiqryq committed May 19, 2024
1 parent ecf4abb commit 650b339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41642,7 +41642,7 @@ const reviewCodeWithOpenAI = async (code) => {
},
{
role: 'user',
content: prompt,
content: prompt(code),
},
],
max_tokens: 150,
Expand All @@ -41659,6 +41659,7 @@ const reviewCodeWithOpenAI = async (code) => {
);
return response.data.choices[0].message.content.trim();
};

const run = async () => {
try {
const context = github.context;
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const reviewCodeWithOpenAI = async (code) => {
},
{
role: 'user',
content: prompt,
content: prompt(code),
},
],
max_tokens: 150,
Expand All @@ -67,6 +67,7 @@ const reviewCodeWithOpenAI = async (code) => {
);
return response.data.choices[0].message.content.trim();
};

const run = async () => {
try {
const context = github.context;
Expand Down

0 comments on commit 650b339

Please sign in to comment.