Skip to content

gentrace/gentrace-node

Repository files navigation

Gentrace Node.js Monorepo

Gentrace is released under the MIT license. Release Github action status

Important

This version of the Node.JS SDK is a monorepo that contains multiple different packages. Previously, we had separated our v0 branch and our v1 branch to support OpenAI v3 and v4, respectively.

Visit the above URLs to learn more about how to install those deprecated packages.

Packages

Gentrace Core (@gentrace/core): core logic that implements important Gentrace abstractions and provides utilities for creating new plugins.

Gentrace OpenAI v3 (@gentrace/openai@v3): plugin for the OpenAI v3 SDK. This version is incompatible with v4.

Gentrace OpenAI v4 (@gentrace/openai@v4): plugin for the OpenAI v4 SDK. This version is incompatible with v3.

Gentrace Pinecone (@gentrace/pinecone): plugin for the Pinecone SDK.

Important note: this library is meant for server-side usage only, as using it in client-side browser code will expose your secret API key.

Installation

# Gentrace core
npm install @gentrace/core

# Gentrace OpenAI v3 plugin
npm install @gentrace/openai@v3

# Gentrace OpenAI v4 plugin
npm install @gentrace/openai@v4

# Gentrace Pinecone plugin
npm install @gentrace/pinecone

Getting started

Visit our docs to learn how to get started.