/opt/canhelp/node_modules/openai/src/resources/skills
Edit: /opt/canhelp/node_modules/openai/src/resources/skills/content.ts (749B)
// 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
{
return this._client.get(path`/skills/${skillID}/content`, {
...options,
headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
__binaryResponse: true,
});
}
}