@site24x7/openai-observability
v1.0.0
Published
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.
Downloads
1
Readme
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.