From 19cb493ee8a05e4526772033830a6ea05333eaee Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Mon, 13 Feb 2023 15:41:27 -0500 Subject: [PATCH] added node-fetch --- index.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7df3cc3..9d7ece7 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,8 @@ import { execSync } from "child_process"; import inquirer from "inquirer"; +import fetch from "node-fetch"; + let OPENAI_API_KEY = process.env.OPENAI_API_KEY; async function main() { diff --git a/package.json b/package.json index 8d73bcb..299be06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aicommits", - "version": "0.0.7", + "version": "0.0.8", "description": "Writes your git commit messages for you with AI", "main": "index.js", "bin": {