SDK reference · Python SDK

prov.trace.diffs.get

prov.trace.diffs.get in Python SDK.

Signature

prov.trace.diffs.get(diff_id: str) -> Any

Parameters

diff_idstrRequired

Request fields

idstringpathRequired
The object's ID.

Returns

Any The diff.

HTTP operation

GET /v1/trace/diffs/{id}: Retrieve a registry diff

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "base": "qwen2.5-0.5b-instruct@7ae55760",
    "target": "qwen2.5-0.5b-instruct@7ae55760",
    "tau": 0.25
  }),
})).json();
const diffId = step1.id;
await new Promise((ok) => setTimeout(ok, 8000));
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs/${diffId}`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.