Back to Firebase Js Sdk

ModalityTokenCount interface

docs-devsite/ai.modalitytokencount.md

12.12.11.1 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

ModalityTokenCount interface

Represents token counting info for a single modality.

<b>Signature:</b>

typescript
export interface ModalityTokenCount 

Properties

PropertyTypeDescription
modalityModalityThe modality associated with this token count.
tokenCountnumberThe number of tokens counted.

ModalityTokenCount.modality

The modality associated with this token count.

<b>Signature:</b>

typescript
modality: Modality;

ModalityTokenCount.tokenCount

The number of tokens counted.

<b>Signature:</b>

typescript
tokenCount: number;