File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
preview/reasoning_engines/templates Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,14 @@ def __init__(self, **kwargs):
166166 )
167167 # The authorizations of the user, keyed by authorization ID.
168168
169- self .user_id : Optional [str ] = kwargs .get ("user_id" , _DEFAULT_USER_ID )
169+ self .user_id : Optional [str ] = kwargs .get ("user_id" ) or kwargs .get (
170+ "userId" , _DEFAULT_USER_ID
171+ )
170172 # The user ID.
171173
172- self .session_id : Optional [str ] = kwargs .get ("session_id" )
174+ self .session_id : Optional [str ] = kwargs .get ("session_id" ) or kwargs .get (
175+ "sessionId"
176+ )
173177 # The session ID.
174178
175179
Original file line number Diff line number Diff line change @@ -180,10 +180,14 @@ def __init__(self, **kwargs):
180180 )
181181 # The authorizations of the user, keyed by authorization ID.
182182
183- self .user_id : Optional [str ] = kwargs .get ("user_id" , _DEFAULT_USER_ID )
183+ self .user_id : Optional [str ] = kwargs .get ("user_id" ) or kwargs .get (
184+ "userId" , _DEFAULT_USER_ID
185+ )
184186 # The user ID.
185187
186- self .session_id : Optional [str ] = kwargs .get ("session_id" )
188+ self .session_id : Optional [str ] = kwargs .get ("session_id" ) or kwargs .get (
189+ "sessionId"
190+ )
187191 # The session ID.
188192
189193
You can’t perform that action at this time.
0 commit comments