import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { receiptsCreate } from "raijin-labs-lucid-ai/funcs/receiptsCreate.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore();
async function run() {
const res = await receiptsCreate(raijinLabsLucidAi, {
modelPassportId: "ppt_model_7xK9mQ2v",
computePassportId: "ppt_compute_Xn5vR2kJ",
policyHash: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
runtime: "vllm",
tokensIn: 42,
tokensOut: 128,
ttftMs: 85,
totalLatencyMs: 1200,
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("receiptsCreate failed:", res.error);
}
}
run();