@@ -44,7 +44,6 @@ pub struct Params {
4444 pub host : Option < String > ,
4545 pub instructions : Option < String > ,
4646 pub voice : Option < RealtimeVoice > ,
47- pub temperature : Option < f32 > ,
4847 #[ serde( default ) ]
4948 pub tools : Vec < types:: ToolDefinition > ,
5049 tool_choice : Option < ToolChoice > ,
@@ -59,7 +58,6 @@ impl Params {
5958 host : None ,
6059 instructions : None ,
6160 voice : None ,
62- temperature : None ,
6361 tools : vec ! [ ] ,
6462 tool_choice : None ,
6563 }
@@ -192,8 +190,6 @@ pub enum ServiceInputEvent {
192190 #[ serde( skip_serializing_if = "Option::is_none" ) ]
193191 voice : Option < RealtimeVoice > ,
194192 #[ serde( skip_serializing_if = "Option::is_none" ) ]
195- temperature : Option < f32 > ,
196- #[ serde( skip_serializing_if = "Option::is_none" ) ]
197193 tools : Option < Vec < types:: ToolDefinition > > ,
198194 #[ serde( skip_serializing_if = "Option::is_none" ) ]
199195 tool_choice : Option < ToolChoice > ,
@@ -371,10 +367,6 @@ impl Client {
371367 send_update = true ;
372368 }
373369
374- if let Some ( temperature) = params. temperature {
375- warn ! ( "Ignoring unsupported realtime session temperature: {temperature}" ) ;
376- }
377-
378370 if !params. tools . is_empty ( ) {
379371 session. tools = Some ( params. tools ) ;
380372 send_update = true ;
@@ -559,16 +551,9 @@ impl Client {
559551 ServiceInputEvent :: SessionUpdate {
560552 instructions,
561553 voice,
562- temperature,
563554 tools,
564555 tool_choice,
565556 } => {
566- if let Some ( temperature) = temperature {
567- warn ! (
568- "Ignoring unsupported realtime session temperature: {temperature}"
569- ) ;
570- }
571-
572557 let audio = voice. map ( |voice| types:: AudioConfig {
573558 input : None ,
574559 output : Some ( types:: AudioOutput {
0 commit comments