Interface CountTokensParameters

Parameters for counting tokens.

interface CountTokensParameters {
    config?: CountTokensConfig;
    contents: ContentListUnion;
    model: string;
}

Properties

Configuration for counting tokens.

Input content.

model: string

ID of the model to use. For a list of models, see Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>_.

MMNEPVFCICPMFPCPTTAAATR