Skip to content

Coming soon: See what your AI is really doing, with just a few lines of code.

Notifications You must be signed in to change notification settings

obsy-ai/sdk-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obsy

Obsy is an open-source observability platform for AI. See what your AI is really doing with just a few lines of code.

Node SDK

npm install @obsy-ai/sdk

Example

With express and OpenAI responses API. View full code at examples/src/openai-responses.ts.

import { ObsyClient, obsyExpress } from "@obsy-ai/sdk";

// view full code at examples/src/openai-responses.ts

// 1. create Obsy client
const obsy = new ObsyClient({
  apiKey: "<your-obsy-api-key>",
  projectId: "<your-obsy-project-id>",
});

// 2. instrument OpenAI client
obsy.instrument(openai);

// 3. enable tracing for each request
app.use(obsyExpress({ client: obsy }));

// JUST 3 SIMPLE STEPS... THAT'S IT!

app.post("/chat", async (req, res) => {
  // view full code at examples/src/openai-responses.ts
});

const PORT = 6969;
app.listen(PORT, () => {
  console.log(`Server is running on port ${PORT}`);
});

About

Coming soon: See what your AI is really doing, with just a few lines of code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published