会话

清空会话消息

Changed on

删除会话中的所有消息,同时清除 LLM 上下文和聊天历史知识库条目。会话本身保留。

delete/sessions/{id}/messages

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/sessions/{id}/messages
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

会话ID

Response

清空成功

object required

Changes