ColudAI-API
  1. SAI-chat多轮对话
ColudAI-API
  • SAI-API
    • SAI-chat多轮对话
      • 新建会话
        POST
      • 查询历史
        POST
      • 删除会话
        POST
    • 安全
      • CSMDK
    • SAI-Reasoner
      • SAI-reasoner3mini
    • SAI-chat
      POST
    • SAI-img_desc
      POST
    • SAI-tts
      POST
    • SAI-获取输出
      GET
    • SAI-txt2img
      POST
    • SAI-coder
      POST
    • 令牌验证
      POST
    • SAI-openai规范
      POST
  • 开放账号
    • ColudAI-登录
      POST
  1. SAI-chat多轮对话

查询历史

POST
https://ai.coludai.cn/api/session/query

使用此接口查询指定会话的历史记录#

请求参数

Body 参数application/json
sessionid
string 
会话id
必需
示例
{
    "sessionid": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ai.coludai.cn/api/session/query' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sessionid": "string"
}'

返回响应

🟢200成功
application/json
Body
array of:
role
string 
角色
必需
cotent
string 
内容
必需
示例
[
    {
        "role": "string",
        "cotent": "string"
    }
]
修改于 2025-01-11 13:42:57
上一页
新建会话
下一页
删除会话
Built with