You can also add the Helicone-User-Id to get userId information in your Lytix dashboard. This is useful if you want to see how a specific user is using your models.
Copy
import { Configuration, OpenAIApi } from "openai";const configuration = new Configuration({apiKey: process.env.OPENAI_API_KEY,basePath: "https://oai.helicone.ai/v1",baseOptions: { headers: { "Helicone-Auth": `Bearer $HELICONE_API_KEY`, "Helicone-Lytix-Key": `$LYTIX_API_KEY`, "Helicone-User-Id": `$USER_ID`, // Add this },},});const openai = new OpenAIApi(configuration);
You can now see the user identifier property in your Lytix dashboard.