Documentation
Table of Contents

Property CharactersPerToken

Namespace
IntentSharp.Specialist
Assembly
IntentSharp.Specialist.dll

CharactersPerToken

How many characters of serialized input count as one token when a specialist declares the most input tokens it accepts (MaxInputTokens), greater than zero. Default 3. The running definition's maxInputChars becomes those tokens times this factor, or its own value when that is lower, so a larger input is refused before any model call with the limit in the message. It counts the serialized input only, not the instructions, and a settings document's client.maxInputChars still beats it.

public double CharactersPerToken { get; set; }

Property Value

double