Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Stop once cumulative token usage across the loop exceeds this threshold.

Example Usage

import { StopServerToolsWhenMaxTokensUsed } from "@openrouter/sdk/models";

let value: StopServerToolsWhenMaxTokensUsed = {
  maxTokens: 945221,
  type: "max_tokens_used",
};

Fields

FieldTypeRequiredDescription
maxTokensnumber:heavy_check_mark:N/A
type”max_tokens_used”:heavy_check_mark:N/A