操作步骤 | 腾讯云智能体开发平台内置COS | 客户自购COS |
1. 密钥获取 | 使用购买时获得的固定密钥(SecretId/Key) | |
2. 客户端初始化 | 通过临时密钥创建低权限 CosClient | 通过固定密钥创建 CosClient |
3. 数据操作 | 调用COS API(需临时密钥权限匹配) | 直接调用COS API |
场景 | 参数组合 | 备注 |
知识库上传文档(离线) | {"BotBizId":"182693390xxxx", "FileType":"pdf", "IsPublic":false} | |
对话中上传文档(实时) | {"BotBizId":"182693390xxxx", "FileType":"pdf", "IsPublic":false, "TypeKey":"realtime"} | |
对话中上传图片 | {"BotBizId":"182693390xxxx", "FileType":"jpeg", "IsPublic":true, "TypeKey":"realtime"} | |
文件下载 | {"BotBizId":"182693390xxxx", "IsPublic":false} | 无需指定文件类型 |
文档反馈