Fork session
client.live.sessions.fork(stringsessionID , SessionForkParams { transport, session } body , RequestOptionsoptions ?): SessionForkResponse { session, transport }
POST
/live/sessions/{session_id}/forkFork session
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});
const response = await client.live.sessions.fork('session_id', {
transport: { sdp: 'x', type: 'webrtc' },
});
console.log(response.session);201 — Example
{
"session": {
"id": "id"
},
"transport": {
"sdp": "x",
"type": "webrtc"
}
}Returns Examples
201 — Example
{
"session": {
"id": "id"
},
"transport": {
"sdp": "x",
"type": "webrtc"
}
}