We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb786a commit 96d8dd6Copy full SHA for 96d8dd6
src/v1/realtime_calls.rs
@@ -13,10 +13,10 @@ pub struct AcceptCallRequest {
13
pub model: RealtimeModel,
14
}
15
impl AcceptCallRequest {
16
- pub fn new(instructions: String, model: RealtimeModel) -> Self {
+ pub fn new(instructions: impl Into<String>, model: RealtimeModel) -> Self {
17
Self {
18
session_type: RealtimeSessionType,
19
- instructions,
+ instructions: instructions.into(),
20
model,
21
22
0 commit comments