@site24x7/openai-observability
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

OpenAI Observability with Node.js Module

Site24x7 includes OpenAI observability, which allows you to track your OpenAI usage, perform model-wise cost analysis, log prompts and responses, identify errors, and more.

Get started with optimizing your AI stack.

Before you can use OpenAI feature, you need a Site24x7 account.

To install the OpenAI module, follow the instructions given below.

  • Open your Node.js application.

  • Access the node package manager (NPM).

  • Install the site24x7 openai module using the following command:

npm install @site24x7/openai-observability --save
  • Add the following statement to the first line of the application's source code, before any other import or require statement.

    • If you are using ES or Typescript:
    import * as site24x7-openai from '@site24x7/openai-observability'
  • If you are using Common JS:
   require('@site24x7/openai-observability')
  • Copy the license key from the Site24x7 portal.

  • Set the license key as an environment variable as shown below,

    • SITE24X7_LICENSE_KEY=
  • Restart the application.

Readme

Keywords

none

Package Sidebar

Install

npm i @site24x7/openai-observability

Weekly Downloads

1

Version

1.0.0

License

SEE LICENSE IN license.txt

Unpacked Size

51.5 kB

Total Files

30

Last publish

Collaborators

  • hsite24x7