Skip to content

Commit 96d8dd6

Browse files
author
janligudzinski
committed
accept anything Into<String> for accept call constructor
1 parent eeb786a commit 96d8dd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v1/realtime_calls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pub struct AcceptCallRequest {
1313
pub model: RealtimeModel,
1414
}
1515
impl AcceptCallRequest {
16-
pub fn new(instructions: String, model: RealtimeModel) -> Self {
16+
pub fn new(instructions: impl Into<String>, model: RealtimeModel) -> Self {
1717
Self {
1818
session_type: RealtimeSessionType,
19-
instructions,
19+
instructions: instructions.into(),
2020
model,
2121
}
2222
}

0 commit comments

Comments
 (0)