智能体开发平台API文档#
1.环境消息头设置#
1.1.apikey设置#
1.2.tenantId设置#
可以不使用消息头tenantId,后台会默认使用个人空间

2.接口中使用的枚举#
2.1.code状态描述#
code | 描述 |
---|
200 | 成功 |
401 | 权限不足 |
500 | 服务器错误 |
2.2. 消息对象中的 role#
roles | 描述 |
---|
user | 用户 |
system | 助手 |
assistant | 系统 |
2.3. modelServiceType 模型服务类型#
modelServiceType | 描述 |
---|
0 | 文本生成模型 |
1 | 图片生成模型 |
2 | 文本嵌入模型 |
修改于 2025-06-11 11:44:28