diff --git a/src/steps/summarize-changes.ts b/src/steps/summarize-changes.ts index 7a9a650..39c29e3 100644 --- a/src/steps/summarize-changes.ts +++ b/src/steps/summarize-changes.ts @@ -13,8 +13,7 @@ export async function summarizeChanges( Logger.log('summarizing changes') const openAiKey = core.getInput('openAIKey') const model = new OpenAI( - { temperature: 0 }, - { apiKey: openAiKey } + { temperature: 0, openAIApiKey: openAiKey }, ) Logger.log('created model') const textSplitter = new RecursiveCharacterTextSplitter({