Skip to content

prompt.version returns _xact_id instead of UI version ID #1264

@gzaripov

Description

@gzaripov

Hi 👋

We’re using the Braintrust TS API to load a prompt:

const prompt = await braintrust.loadPrompt({
  slug,
  apiKey,
  projectName: BRAINTRUST_PROJECT_NAME,
  orgName: BRAINTRUST_ORGANIZATION,
});

When we inspect prompt.version, we get a value like: 1000196486371469912

But in the Braintrust UI, the version shown is something like: 27a571a73aa983e8

So prompt.version seems to return an internal _xact_id, not the short version hash displayed in the UI.

Questions:

  1. How can we get the same version ID shown in the UI (27a571a73aa983e8)?
  2. Is there another field or endpoint that exposes this version hash?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions