@@ -49,9 +49,9 @@ def create(
4949 * ,
5050 datasource_id : str ,
5151 question : str ,
52+ parameterize : bool | NotGiven = NOT_GIVEN ,
5253 role_id : Optional [str ] | NotGiven = NOT_GIVEN ,
5354 role_variables : Optional [object ] | NotGiven = NOT_GIVEN ,
54- separate_params : bool | NotGiven = NOT_GIVEN ,
5555 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5656 # The extra values given here take precedence over values defined on the client or passed to this method.
5757 extra_headers : Headers | None = None ,
@@ -67,13 +67,13 @@ def create(
6767
6868 question: 查询语句
6969
70+ parameterize: 是否将参数分开传递
71+
7072 role_id: 角色 ID,将扮演这个角色来执行对话,用于权限控制。若无,则跳过鉴权,即可查询所有
7173 数据
7274
7375 role_variables: 在扮演这个角色时需要传递的变量值,用 Key-Value 形式传递
7476
75- separate_params: 是否将参数分开传递
76-
7777 extra_headers: Send extra headers
7878
7979 extra_query: Add additional query parameters to the request
@@ -88,9 +88,9 @@ def create(
8888 {
8989 "datasource_id" : datasource_id ,
9090 "question" : question ,
91+ "parameterize" : parameterize ,
9192 "role_id" : role_id ,
9293 "role_variables" : role_variables ,
93- "separate_params" : separate_params ,
9494 },
9595 sql_create_params .SqlCreateParams ,
9696 ),
@@ -177,9 +177,9 @@ async def create(
177177 * ,
178178 datasource_id : str ,
179179 question : str ,
180+ parameterize : bool | NotGiven = NOT_GIVEN ,
180181 role_id : Optional [str ] | NotGiven = NOT_GIVEN ,
181182 role_variables : Optional [object ] | NotGiven = NOT_GIVEN ,
182- separate_params : bool | NotGiven = NOT_GIVEN ,
183183 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
184184 # The extra values given here take precedence over values defined on the client or passed to this method.
185185 extra_headers : Headers | None = None ,
@@ -195,13 +195,13 @@ async def create(
195195
196196 question: 查询语句
197197
198+ parameterize: 是否将参数分开传递
199+
198200 role_id: 角色 ID,将扮演这个角色来执行对话,用于权限控制。若无,则跳过鉴权,即可查询所有
199201 数据
200202
201203 role_variables: 在扮演这个角色时需要传递的变量值,用 Key-Value 形式传递
202204
203- separate_params: 是否将参数分开传递
204-
205205 extra_headers: Send extra headers
206206
207207 extra_query: Add additional query parameters to the request
@@ -216,9 +216,9 @@ async def create(
216216 {
217217 "datasource_id" : datasource_id ,
218218 "question" : question ,
219+ "parameterize" : parameterize ,
219220 "role_id" : role_id ,
220221 "role_variables" : role_variables ,
221- "separate_params" : separate_params ,
222222 },
223223 sql_create_params .SqlCreateParams ,
224224 ),
0 commit comments