🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@ai-assist/openai-apilyzer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-assist/openai-apilyzer

A CLI tool for downloading data from the OpenAI API to facilitate further analysis of usage.

Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

openai-apilyzer

A CLI tool for downloading data from the OpenAI API to facilitate further analysis of usage.

Usage

Prerequisite: Install nodejs 18 lts

npx i @ai-assist/openai-apilyzer --authorization '<authorization>' --organization '<organization>'
# downloaded
# written to openai-api-usage-2023-02-28-2023-03-30.csv

The CSV file can then be viewed in Excel.

csv

Options

npx @ai-assist/openai-apilyzer -h
Usage: openai-apilyzer [options]

Options:
  --authorization <authorization>  authorization token
  --organization <organization>    organization id
  --start [start]                  start date, default is 30 days ago (default:
                                   "2023-02-28")
  --end [end]                      end date, default is today (default:
                                   "2023-03-30")
  --format [format]                json/csv format of output, default is json
                                   (default: "csv")
  --output [output]                output file, default is usage.[format]
  -V, --version                    output the version number
  -h, --help                       display help for command

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

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