Skip to main content

Overview

Opik can log AI Sonar calls by wrapping an OpenAI client that points to AI Sonar’s OpenAI-compatible endpoint.
Type: ObservabilityPrimary Path: OpenAI SDK tracing wrapperSupport Confidence: Supported OpenAI-compatible tracing path

Installation

Environment

Wrap the OpenAI Client

Log a Chat Completion

Endpoint Notes

This setup traces the OpenAI-compatible SDK path. If you use AI Sonar native endpoints outside the OpenAI SDK, instrument that client or workflow separately.