diff --git a/src/main.ts b/src/main.ts index 4031491..beef8cb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import { Octokit } from "@octokit/rest"; import parseDiff, { Chunk, File } from "parse-diff"; import minimatch from "minimatch"; import { parse } from "path"; +import { APIPromise } from "openai/core"; const GITHUB_TOKEN: string = core.getInput("GITHUB_TOKEN"); const OPENAI_API_KEY: string = core.getInput("OPENAI_API_KEY"); @@ -132,11 +133,12 @@ async function getAIResponse(prompt: string): Promise