openai-error-solver
v1.0.2
Published
A package to capture terminal errors and provide solutions using OpenAI API
Downloads
8
Maintainers
Readme
Error-Solver
This NPM package captures terminal errors and suggests solutions using OpenAI's API.
Setup
Step 1: Get Your OpenAI API Key
To use this package, you'll need an API key from OpenAI. You can get it by signing up at OpenAI.
Step 2: Provide the API Key
There are two ways to provide your OpenAI API key:
Environment Variable:
You can set the API key as an environment variable by creating a
.env
file in your project root: bash error-solverCLI Option:
Alternatively, you can pass the API key directly as a command-line argument when using the package:
error-solver --apiKey your-openai-api-key