---
title: "停止生成"
method: POST
path: "/sessions/{session_id}/stop"
tags: ["问答"]
---

# 停止生成

`POST /sessions/{session_id}/stop`

停止当前正在进行的生成任务

## Path parameters

- `session_id` string, required

## Request body

- InternalHandlerSessionStopSessionRequest
  - `message_id` string, required

## Response `200`

停止成功

- object

## Other responses

- `404` — 会话或消息不存在

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/6e297e21afca/schema)
