From 65a6125de1fa949606244a0ad41e872c19b9a540 Mon Sep 17 00:00:00 2001 From: Uday Girhepunje Date: Sun, 7 Apr 2024 19:54:56 +0530 Subject: [PATCH] Comment out OpenAI code and add dummy response --- src/main.ts | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/src/main.ts b/src/main.ts index c4f5e87..8439954 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,9 +11,9 @@ const OPENAI_API_MODEL: string = core.getInput("OPENAI_API_MODEL"); const octokit = new Octokit({ auth: GITHUB_TOKEN }); -const openai = new OpenAI({ - apiKey: OPENAI_API_KEY, -}); +// const openai = new OpenAI({ +// apiKey: OPENAI_API_KEY, +// }); interface PRDetails { owner: string; @@ -124,20 +124,30 @@ async function getAIResponse(prompt: string): Promise