spryngtime-azure-openai-node

1.0.1 • Public • Published

Spryngtime OpenAI Node wrapper

Easily track LLM analytics, debug prompts, and bill for usage. This is an Azure OpenAI wrapper for you to easily drop and replace Azure OpenAI with Spryngtime's wrapper for out of the box analytics & LLM observability!

How to get started:

  1. Sign up for an account and get an API key at https://www.usespryngtime.com/

  2. Set your OpenAI and Spryngtime API keys in your environment/.env file
    For example: OPENAI_API_KEY=sk-openaiapikey
    SPRYNGTIME_API_KEY=spryngtime_api_key

  3. npm install spryngtime-azure-openai-node

  4. Replace
    const { OpenAIClient, AzureKeyCredential } = require("@azure/openai");
    with
    const {AzureKeyCredential} = require("@azure/openai"); const OpenAIClient = require("spryngtime-azure-openai-node").SpryngtimeOpenAI;

  5. Go live!

Readme

Keywords

none

Package Sidebar

Install

npm i spryngtime-azure-openai-node

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

19.4 kB

Total Files

7

Last publish

Collaborators

  • azianmike