新增/修改AIPro嵌入配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AiProId |
string |
否 |
AIPro 配置 ID;不传或空白表示新建,非空表示修改 |
test |
| ShowName |
string |
否 |
配置名称;新建时必填且组织内唯一;修改时空白表示不更新 |
test |
| AgentName |
string |
否 |
智能体昵称;新建默认“智能数据分析助手” |
test |
| ChatHistoryStatus |
integer |
否 |
展示历史对话:
新建默认 1 |
1 |
| MemoryEnabled |
integer |
否 |
启用记忆:
新建默认 0 |
1 |
| UploadEnabled |
integer |
否 |
允许上传文件:
新建默认 0 |
1 |
| Config |
string |
否 |
前端保存的嵌入外观 JSON 字符串 |
test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
46e53746***70 |
| Result |
boolean |
返回接口执行结果。取值范围:
|
true |
| Success |
boolean |
是否请求成功。取值范围:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "46e53746***70",
"Result": true,
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 |
| 400 | AIPro.EmbedConfig.NotFindError | Can not find AI Pro embed config with this aiProId %s. | 未找到嵌入配置:%s。 |
| 400 | Invalid.Parameter | An error occurred while verifying parameters. | 参数验证失败。 |
| 400 | AIProEmbed.ShowName.DuplicateError | AIPro embedded configuration name already exists, please replace it and try again. | AIPro嵌入配置名称已存在,请更换后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。