Table of Contents

TTMSMCPSamplingRequestBuilder.WithMaxTokens Method

Sets the upper limit on the number of tokens the model may generate.

API unit family: TMS.MCP.Sampling Declaring type: TTMSMCPSamplingRequestBuilder

Syntax

function WithMaxTokens(AMaxTokens: Integer): TTMSMCPSamplingRequestBuilder;

Parameters

Name Description
AMaxTokens Token limit; a value of zero or less is raised to 1. The limit is 1000 when it is not set.

Returns

The builder, so that further calls can be chained.