Socket
Socket
Sign inDemoInstall

aigc

Package Overview
Dependencies
44
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aigc

Generate content for you with OpenAI


Version published
Maintainers
1
Created

Readme

Source

aigc

Generate content for you with OpenAI

Installation

require node >= 14

npm i -g aigc

Usage

The library needs to be configured with your account's secret key which is available on the website. Set it as the OPENAI_API_KEY environment variable before using the library:

export OPENAI_API_KEY='sk-...'

Command-line interface

This library additionally provides an aigc command-line utility which makes it easy to interact with the API from your terminal. Run aigc -h for usage.

# list models
aigc list-models
# create a completion
aigc --prompt "Write unit test for the code below" path/to/your/codeFile
# create image
aigc image "cute cat"
Example 1: Generate document comment for function

Generate document comment

Example 2: Generate unit test for function

Generate unit test

Changelog

Changelog

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Last updated on 01 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc