你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RunCompletionUsage interface

Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).

Properties

completionTokens

Number of completion tokens used over the course of the run.

promptTokens

Number of prompt tokens used over the course of the run.

totalTokens

Total number of tokens used (prompt + completion).

Property Details

completionTokens

Number of completion tokens used over the course of the run.

completionTokens: number

Property Value

number

promptTokens

Number of prompt tokens used over the course of the run.

promptTokens: number

Property Value

number

totalTokens

Total number of tokens used (prompt + completion).

totalTokens: number

Property Value

number