apps/opik-documentation/documentation/fern/docs/changelog/2026-06-02.mdx
The Prompt Library is now part of the Opik 2.0 UI, accessible from the project sidebar under Prompt library. Alongside that, prompt versions have gained first-class environment support — you can tag a version as production or staging and retrieve it by name from the SDK, without tracking version numbers in application code.
What's new:
client.get_prompt(name, environment="production") returns the version currently tagged as production; version and environment are mutually exclusive and passing both raises a clear errorclient.set_prompt_environments(name, ["production", "staging"]) replaces the full environment set on a version; the same environment is automatically moved away from whatever version previously held itclient.create_prompt(name, content="...", environments=["staging"]) and client.create_chat_prompt(...) accept environments directlysetPromptEnvironments, getPrompt({ environment }), and createPrompt({ environments }) mirror the Python APIv1, v2, v3 in the UI and API instead of raw commit hashes# Tag a version at creation time
prompt = client.create_prompt("system-prompt", content="...", environments=["staging"])
# Retrieve by environment — no hard-coded version number needed
production_prompt = client.get_prompt("system-prompt", environment="production")
# Promote a specific version to production
client.set_prompt_environments("system-prompt", ["production"], version="v3")
The Traces, Spans, and Threads tabs now have a redesigned filter bar that makes it faster to narrow down what you're looking at. Filters appear as chips directly in the toolbar — pick a field, set a value, and the table updates instantly. Frequently-used filters can be pinned to the bar so they're always one click away, and filter state is preserved in the URL so you can share an exact filtered view with a teammate.
<Frame> </Frame>get_trace_spans and read tool calls to inspect intermediate spans during evaluation, enabling correctness checks about tool usage, model selection, and per-span errors inside complex agentsClassCastException under certain configurationsdata:<type>;base64, prefix are now stripped correctly in both the SDK and the frontendopik migrate: skipped items reported clearly — the migration command now reports each skipped item with its reason, count, and sample source IDs, and exits with code 1 so CI pipelines detect incomplete migrationsAnd much more! 👉 See full commit log on GitHub
Releases: 2.0.48, 2.0.49, 2.0.50, 2.0.51, 2.0.52