Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/threads/runs/mod.ts>RunStep.Usage

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface RunStep.Usage
import { type RunStep } from "https://deno.land/x/openai@v4.52.1/resources/beta/threads/runs/mod.ts";
const { Usage } = RunStep;

Usage statistics related to the run step. This value will be null while the run step's status is in_progress.

Properties

completion_tokens: number

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

prompt_tokens: number

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

total_tokens: number

Total number of tokens used (prompt + completion).