Skip to content

Truncation ​

Category: Web

Source: truncation.dart

Classes ​

TokenTruncation ​

Methods ​

static int estimateTokens(String text) ​
static String truncate(String content, {required int maxTokens}) ​

Released under the MIT License.