Fork session
client.live.sessions.fork(stringsessionID, SessionForkParams { transport, session } body, RequestOptionsoptions?): SessionForkResponse { session, transport }
POST/live/sessions/{session_id}/fork
Fork 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);{
"session": {
"id": "id"
},
"transport": {
"sdp": "x",
"type": "webrtc"
}
}Returns Examples
{
"session": {
"id": "id"
},
"transport": {
"sdp": "x",
"type": "webrtc"
}
}