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

x/openai/resources/mod.ts>Files#retrieveContent

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Files.prototype.retrieveContent
Deprecated
Deprecated

The .content() method should be used instead

import { Files } from "https://deno.land/x/openai@v4.52.1/resources/mod.ts";

Returns the contents of the specified file.

Parameters

fileId: string
optional
options: Core.RequestOptions

Returns

Core.APIPromise<string>