Skip to main content

Integration: NVIDIA NIM

NVIDIA NIM is a platform for managing and deploying AI models APIs that are compatible with the OpenAI client. Integration with an NVIDIA NIM application is straightforward with openllmtelemetry package.

First, you need to set a few environment variables. This can be done via your container set up or via code.

import openllmtelemetry


Once this is done, all of your OpenAI interactions will be automatically traced. If you have rulesets enabled for blocking in WhyLabs Secure policy, the library will block requests accordingly

from openai import OpenAI
client = OpenAI()

client = OpenAI(
base_url = "",

completion =
messages=[{"role":"user","content":"Show me how to build a bike"}],
Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration