You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v1/realtime_calls.rs
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,25 @@
1
1
use serde::{Deserialize,Serialize};
2
2
3
+
usecrate::realtime::types::RealtimeModel;
4
+
3
5
/// Used to start a realtime session based on an incoming call that you can then connect to over WSS with `RealtimeSipClient` from `openai_api_rs::realtime::sip`.
4
6
/// Note that this is poorly documented by OpenAI with the only example data given in https://platform.openai.com/docs/guides/realtime-sip#handle-the-webhook and these may not be all the possible fields.
5
7
#[derive(Debug,Serialize,Deserialize,Clone)]
6
8
pubstructAcceptCallRequest{
7
-
/// This is *always* `realtime`.
9
+
/// This is *always* `realtime`. Convenience constructor exposed to ensure this.
/// Used to redirect a call to another number. Per https://platform.openai.com/docs/guides/realtime-sip#handle-the-webhook the Tel-URI scheme may be used.
0 commit comments