From 62fdb5659121ccf08d3cf89f69ea2c098c5f41ab Mon Sep 17 00:00:00 2001 From: Jack Driscoll Date: Sat, 27 Jul 2024 09:00:01 -0700 Subject: [PATCH] log the response --- src/main.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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