Skip to main content
Deno 2 is finally 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.69.0/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.