Skip to main content

Overview

Create an OpenAI-compatible TokenLab client and pass it to OpenAIChatCompletionsModel.

Environment

Example

Scope

This path uses Chat Completions compatibility. TokenLab’s native Responses endpoint is available at https://api.tokenlab.sh/v1/responses, but SDK features that depend on OpenAI-specific Responses semantics should be verified with the exact model and workflow before production use.