File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/hume/empathic_voice/chat Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ def connect(
6969 verbose_transcription : typing .Optional [bool ] = None ,
7070 api_key : typing .Optional [str ] = None ,
7171 session_settings : ConnectSessionSettings ,
72+ allow_connection : typing .Optional [bool ] = None ,
7273 request_options : typing .Optional [RequestOptions ] = None ,
7374 ) -> typing .Iterator [ChatSocketClient ]:
7475 """
@@ -148,6 +149,8 @@ def connect(
148149 query_params = query_params .add ("verbose_transcription" , verbose_transcription )
149150 if api_key is not None :
150151 query_params = query_params .add ("api_key" , api_key )
152+ if allow_connection is not None :
153+ query_params = query_params .add ("allow_connection" , str (allow_connection ).lower ())
151154 if session_settings is not None :
152155 flattened_params = single_query_encoder ("session_settings" , session_settings )
153156 for param_key , param_value in flattened_params :
You can’t perform that action at this time.
0 commit comments