Skip to main content

Overview

Opik can log TokenLab calls by wrapping an OpenAI client that points to TokenLab’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 TokenLab native endpoints outside the OpenAI SDK, instrument that client or workflow separately.