22
33from __future__ import annotations
44
5- from typing import Dict , List , Union , Optional
5+ from typing import Dict , Union , Optional
66
77import httpx
88
@@ -64,7 +64,6 @@ def create(
6464 self ,
6565 * ,
6666 bot_id : Optional [str ] | NotGiven = NOT_GIVEN ,
67- datasource_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
6867 name : Optional [str ] | NotGiven = NOT_GIVEN ,
6968 role_id : Optional [str ] | NotGiven = NOT_GIVEN ,
7069 role_variables : Optional [Dict [str , Union [str , int , bool ]]] | NotGiven = NOT_GIVEN ,
@@ -83,8 +82,6 @@ def create(
8382 bot_id: 机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
8483 可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
8584
86- datasource_ids: 直接与数据源对话,我们会自动为你创建一个机器人, only support one datasource
87-
8885 name: New name for the chat
8986
9087 role_id: 角色 ID,将扮演这个角色来执行对话,用于权限控制。若无,则跳过鉴权,即可查询所有
@@ -107,7 +104,6 @@ def create(
107104 body = maybe_transform (
108105 {
109106 "bot_id" : bot_id ,
110- "datasource_ids" : datasource_ids ,
111107 "name" : name ,
112108 "role_id" : role_id ,
113109 "role_variables" : role_variables ,
@@ -263,7 +259,6 @@ async def create(
263259 self ,
264260 * ,
265261 bot_id : Optional [str ] | NotGiven = NOT_GIVEN ,
266- datasource_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
267262 name : Optional [str ] | NotGiven = NOT_GIVEN ,
268263 role_id : Optional [str ] | NotGiven = NOT_GIVEN ,
269264 role_variables : Optional [Dict [str , Union [str , int , bool ]]] | NotGiven = NOT_GIVEN ,
@@ -282,8 +277,6 @@ async def create(
282277 bot_id: 机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
283278 可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
284279
285- datasource_ids: 直接与数据源对话,我们会自动为你创建一个机器人, only support one datasource
286-
287280 name: New name for the chat
288281
289282 role_id: 角色 ID,将扮演这个角色来执行对话,用于权限控制。若无,则跳过鉴权,即可查询所有
@@ -306,7 +299,6 @@ async def create(
306299 body = await async_maybe_transform (
307300 {
308301 "bot_id" : bot_id ,
309- "datasource_ids" : datasource_ids ,
310302 "name" : name ,
311303 "role_id" : role_id ,
312304 "role_variables" : role_variables ,
0 commit comments