Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/threads/runs/steps.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.61.1/resources/beta/threads/runs/steps.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).