Skip to content

This project tests various capabilities of the OpenAI API using a Command Line Interface (CLI) built with the OpenAI Node.js SDK.

Notifications You must be signed in to change notification settings

tone2k/open-cli-test

Repository files navigation

OpenAI CLI Test Project

This project tests various capabilities of the OpenAI API using a Command Line Interface (CLI) built with the OpenAI Node.js SDK.

Setup

  1. Clone the repository:

    git clone https://github.com/tone2k/openai-cli-test.git
    cd openai-test
  2. Install dependencies:

    npm install
  3. Add API key:

    Create a .env file in the root directory with your OpenAI API key:

    OPENAI_API_KEY=your_actual_openai_api_key
    

Usage

Run the CLI to test chat:

node openai.js

Running Tests

Test all OpenAI capabilities (chat, image generation, speech synthesis, transcription) with:

npm test

Notes

  • Ensure .env is in .gitignore to keep your API key secure.
  • The .env file should contain OPENAI_API_KEY.

License

MIT License

For more details, visit the OpenAI API Documentation.

About

This project tests various capabilities of the OpenAI API using a Command Line Interface (CLI) built with the OpenAI Node.js SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published