Every change to a prompt in the Prompt Library creates a new immutable version, numbered
sequentially as v1, v2, v3, … Once created, a version can’t be modified — you always have
a full audit trail.
You can create new versions from the Opik UI or from code using the SDK.
To create a new version from the Opik platform:
The new version is available immediately.
Pass the version parameter to fetch a specific version, or omit it to fetch the most recent:
You can compare any two versions side-by-side in the Opik UI to see exactly what changed. This is useful for reviewing changes before pointing your agent at a new version.
