@pangeacyber/openai
v0.1.0
Published
A wrapper around the OpenAI TypeScript library that wraps the Responses API with Pangea AI Guard
Keywords
Readme
Pangea + OpenAI TypeScript API Library
A wrapper around the OpenAI TypeScript library that wraps the Responses API with Pangea AI Guard. Supports Node.js v22 and greater.
Installation
npm install @pangeacyber/openaiUsage
import { PangeaOpenAI } from "@pangeacyber/openai";
const client = new PangeaOpenAI({
apiKey: process.env.OPENAI_API_KEY,
pangeaApiKey: process.env.PANGEA_API_KEY,
});
const response = await client.responses.create({
model: "gpt-4o-mini",
instructions: "You are a helpful assistant.",
input: "Are semicolons optional in JavaScript?",
});
console.log(response.output_text);