Chat completions via API not displaying in Dashboard

Hello,

I am using the chat completion api , using the OpenAI’s official Typescript SDK. It works well however I would like to further evaluate and inspect the completions in the Dashboard of my Project. However, now after a month of use (at least 3 calls a day on average). I do not see any information on the project Dashboard for the chat completion made via the API.

Has anyone experienced this and have found a fix?

For context, my use is similar to this example, with the correct project id and org id:

import OpenAI from "openai";
const openai = new OpenAI({
    apiKey: openAiApiKey.value(),
    project: openAiProject.value(),
    organization: "myOrg",
});

const completion = await openai.chat.completions.create({
    model: "gpt-4o",
    messages: [
        { role: "system", content: "You are a helpful assistant." },
        {
            role: "user",
            content: "Write a haiku about recursion in programming.",
        },
    ],
});

Thank you.

Hi @SirLanzelot :wave:

Welcome to the developer forum.

In order to see your stored chat completions, you need to store them first by setting the store param to true in your chat completion API call.

3 Likes