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:
- How can we get the same version ID shown in the UI (
27a571a73aa983e8)?
- Is there another field or endpoint that exposes this version hash?
Thanks!