Skip to content

Commit

Permalink
added check for open ai key
Browse files Browse the repository at this point in the history
  • Loading branch information
bemijonathan committed Oct 7, 2023
1 parent ce37b9d commit d5b1232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/steps/summarize-changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
)
Expand Down

0 comments on commit d5b1232

Please sign in to comment.