UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

21 lines (18 loc) 749 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../core/resource'; import { APIPromise } from '../../core/api-promise'; import { buildHeaders } from '../../internal/headers'; import { RequestOptions } from '../../internal/request-options'; import { path } from '../../internal/utils/path'; export class Content extends APIResource { /** * Download a skill zip bundle by its ID. */ retrieve(skillID: string, options?: RequestOptions): APIPromise<Response> { return this._client.get(path`/skills/${skillID}/content`, { ...options, headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]), __binaryResponse: true, }); } }