Skip to content

OpenAI.ChatCompletion.Tokens

Andrew Lambert edited this page Jun 1, 2024 · 2 revisions

Method signature

 Function Tokens(ResultIndex As Integer = 0) As OpenAI.TokenEngine

Parameters

Name Type Comment
ResultIndex Integer Optional. The index of the result to retrieve if there are more than one. If the index is invalid then an OutOfBoundsException will be raised.

Return value

A reference to a TokenEngine for the result at ResultIndex. Not all endpoints provide token information.

Clone this wiki locally