Updating and Deleting Audit Targets#
Updating a Target#
client.audit.targets.update(
name="demo-basic-target",
workspace="default",
model="nvidia/llama-3.1-nemotron-nano-8b-v1",
options={
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 1024,
"nmp_uri_spec": {"inference_gateway": { "workspace": "default", "provider": "alternate-provider" }},
}
}
)
nmp audit targets update demo-basic-target --workspace default \
--type "nim.NVOpenAIChat" \
--model "nvidia/llama-3.1-nemotron-nano-8b-v1" \
--options '{"nim": { "skip_seq_start": "<think>", "skip_seq_end": "</think>", "max_tokens": 4000,
"nmp_uri_spec": {"inference_gateway": { "workspace": "default", "provider": "alternate-provider" }}}}' \
-f json
Deleting a Target#
client.audit.targets.delete(
name="demo-basic-target",
workspace="default"
)
nmp audit targets delete demo-basic-target --workspace default
Viewing Target History#
When you create, update, or delete an audit target, the microservice records the change.
You can compare the updated_at fields to determine the most recent version or
you can compare the id and entity_id fields.
The object with matching id and entity_id fields is the latest version.
versions = client.audit.targets.list_versions(
name="demo-basic-target",
workspace="default"
)
print(versions.model_dump_json(indent=2))
nmp audit targets list-versions demo-basic-target --workspace default -f json
Example Output
{
"data": [
{
"id": "audit-target-PcgcTs4q8vRgYA72GmvF8J",
"created_at": "2026-01-20T17:11:24.819841Z",
"entity_id": "audit-target-PcgcTs4q8vRgYA72GmvF8J",
"model": "nvidia/llama-3.1-nemotron-nano-8b-v1",
"parent": null,
"type": "nim.NVOpenAIChat",
"updated_at": "2026-01-20T17:11:24.819841Z",
"workspace": "default",
"description": null,
"name": "demo-basic-target",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 1024,
"uri": "http://auditor-llm-1:8000/v1/"
}
},
"project": null
},
{
"id": "audit-target-MZ2AqoBmWzPjbt1ZneqbYE",
"created_at": "2026-01-20T17:11:24.689288Z",
"entity_id": "audit-target-MZ2AqoBmWzPjbt1ZneqbYE",
"model": "nvidia/nemotron-nano-12b-v2-vl",
"parent": null,
"type": "nim.NVOpenAIChat",
"updated_at": "2026-01-20T17:11:24.818528Z",
"workspace": "default",
"description": null,
"name": "demo-basic-target-jraasf",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"nmp_uri_spec": {"inference_gateway": {"workspace": "default", "provider": "build"}}
}
},
"project": null
}
],
"pagination": {
"current_page_size": 2,
"page": 1,
"page_size": 100,
"total_pages": 1,
"total_results": 2
}
}
{
"data": [
{
"name": "demo-basic-target",
"workspace": "default",
"project": null,
"description": null,
"type": "nim.NVOpenAIChat",
"model": "nvidia/llama-3.1-nemotron-nano-8b-v1",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 1024,
"uri": "http://auditor-llm-1:8000/v1/"
}
},
"id": "audit-target-VCCoid9wCtUo9BV7jZYA77",
"created_at": "2026-01-20T19:59:48.725711Z",
"updated_at": "2026-01-20T19:59:48.725711Z",
"entity_id": "audit-target-VCCoid9wCtUo9BV7jZYA77",
"parent": null
},
{
"name": "demo-basic-target-bcuede",
"workspace": "default",
"project": null,
"description": null,
"type": "nim.NVOpenAIChat",
"model": "nvidia/nemotron-nano-12b-v2-vl",
"options": {
"nim": {
"skip_seq_start": "<think>",
"skip_seq_end": "</think>",
"max_tokens": 3200,
"nmp_uri_spec": {"inference_gateway": {"workspace": "default", "provider": "build"}}
}
},
"id": "audit-target-RGYwQpWZ6FVrNJSwxFg3Hm",
"created_at": "2026-01-20T19:59:45.191619Z",
"updated_at": "2026-01-20T19:59:48.724316Z",
"entity_id": "audit-target-RGYwQpWZ6FVrNJSwxFg3Hm",
"parent": null
}
],
"pagination": {
"page": 1,
"page_size": 100,
"current_page_size": 2,
"total_pages": 1,
"total_results": 2
}
}