ChatDebugOptions - TypeScript SDK

ChatDebugOptions type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Debug options for inspecting request transformations (streaming only)

Example Usage

1import { ChatDebugOptions } from "@openrouter/sdk/models";
2
3let value: ChatDebugOptions = {};

Fields

FieldTypeRequiredDescriptionExample
echoUpstreamBodybooleanâž–If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode.true