From d5b1232e462033cdd5bcd4cc046f6674a3fca222 Mon Sep 17 00:00:00 2001 From: Jonathan Atiene <34762800+bemijonathan@users.noreply.github.com> Date: Sat, 7 Oct 2023 09:02:26 +0100 Subject: [PATCH] added check for open ai key --- src/steps/summarize-changes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/steps/summarize-changes.ts b/src/steps/summarize-changes.ts index c28747d..e144385 100644 --- a/src/steps/summarize-changes.ts +++ b/src/steps/summarize-changes.ts @@ -13,6 +13,8 @@ export async function summarizeChanges( const openAiKey = core.getInput('openAIKey') + Logger.log('creating openai model', openAiKey.length ? 'with key' : 'without key') + const model = new OpenAI( { temperature: 0.7, openAIApiKey: openAiKey, "model": "davinci" }, )