Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/resources/mod.ts>CompletionUsage.PromptTokensDetails

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface CompletionUsage.PromptTokensDetails
import { type CompletionUsage } from "https://deno.land/x/openai@v4.67.1/resources/mod.ts";
const { PromptTokensDetails } = CompletionUsage;

Breakdown of tokens used in the prompt.

Properties

optional
audio_tokens: number

Audio input tokens present in the prompt.

optional
cached_tokens: number

Cached tokens present in the prompt.