UNPKG

@restnfeel/agentc-starter-kit

Version:

한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템

31 lines (28 loc) 1.01 kB
import { APIResource } from '../../../resource.js'; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. class Sessions extends APIResource { /** * Create an ephemeral API token for use in client-side applications with the * Realtime API. Can be configured with the same session parameters as the * `session.update` client event. * * It responds with a session object, plus a `client_secret` key which contains a * usable ephemeral API token that can be used to authenticate browser clients for * the Realtime API. * * @example * ```ts * const session = * await client.beta.realtime.sessions.create(); * ``` */ create(body, options) { return this._client.post('/realtime/sessions', { body, ...options, headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers }, }); } } export { Sessions }; //# sourceMappingURL=sessions.js.map