---
title: "Changes to Generate a stream of token using Server-Sent Events"
method: POST
path: "/generate_stream"
---

# Changes to Generate a stream of token using Server-Sent Events

`POST /generate_stream`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 7 of 26 revisions.

- **2023-06-05** `e35edd53eed0` — 1 info
- **2023-04-18** `de34bec00da8` — 4 breaking, 5 warning, 1 info
- **2023-03-09** `7bbd67c90f87` — 1 breaking, 1 warning, 11 info
- **2023-03-03** `72d7100b5e30` — 2 info
- **2023-02-24** `b1dc76c2e991` — 1 info
- **2023-02-16** `85e3db450aba` — 5 breaking, 12 info
- **2023-02-03** `a9059df72b92` — 15 breaking, 8 warning, 6 info

## Changes

- **2023-06-05** `e35edd53eed0` — 1 info
  - added the new optional request property `parameters/decoder_input_details`
- **2023-04-18** `de34bec00da8` — 4 breaking, 5 warning, 1 info
  - the response property `details` became nullable for the status `200`
  - the `details` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `details/finish_reason` from the response with the `200` status
  - removed the required property `details/generated_tokens` from the response with the `200` status
  - the `parameters/best_of` request property's min was set to `0.00`
  - the `parameters/max_new_tokens` request property's min was set to `0.00`
  - the `parameters/seed` request property's min was set to `0.00`
  - the `parameters/truncate` request property's min was set to `0.00`
  - removed the optional property `details/seed` from the response with the `200` status
  - added `#/components/schemas/StreamDetails` to the `details` response property `allOf` list for the response status `200`
- **2023-03-09** `7bbd67c90f87` — 1 breaking, 1 warning, 11 info
  - the response property `details/seed` became nullable for the status `200`
  - the `parameters/seed` request property's exclusiveMinimum was set to `0.00`
  - added the new optional request property `parameters/best_of`
  - added the new optional request property `parameters/truncate`
  - added the new optional request property `parameters/typical_p`
  - the request property `parameters/return_full_text` became nullable
  - the request property `parameters/seed` became nullable
  - the `seed` request property default value `null` was added
  - the `return_full_text` request property default value changed from `None` to `null`
  - added the required property `error_type` to the response with the `422` status
  - added the required property `error_type` to the response with the `424` status
  - added the required property `error_type` to the response with the `429` status
  - added the required property `error_type` to the response with the `500` status
- **2023-03-03** `72d7100b5e30` — 2 info
  - added the new optional request property `parameters/return_full_text`
  - added the new optional request property `parameters/watermark`
- **2023-02-24** `b1dc76c2e991` — 1 info
  - added the required property `token/special` to the response with the `200` status
- **2023-02-16** `85e3db450aba` — 5 breaking, 12 info
  - the response's body type/format changed from `array`/`` to `object`/`` for status `200`
  - the response's body type/format changed from `array`/`` to `object`/`` for status `422`
  - the response's body type/format changed from `array`/`` to `object`/`` for status `424`
  - the response's body type/format changed from `array`/`` to `object`/`` for status `429`
  - the response's body type/format changed from `array`/`` to `object`/`` for status `500`
  - media type `text/event-stream ` was changed to a more specific media type `text/event-stream` for the response status `200`
  - media type `text/event-stream ` was changed to a more specific media type `text/event-stream` for the response status `422`
  - media type `text/event-stream ` was changed to a more specific media type `text/event-stream` for the response status `424`
  - media type `text/event-stream ` was changed to a more specific media type `text/event-stream` for the response status `429`
  - media type `text/event-stream ` was changed to a more specific media type `text/event-stream` for the response status `500`
  - added the optional property `details` to the response with the `200` status
  - added the optional property `generated_text` to the response with the `200` status
  - added the required property `error` to the response with the `422` status
  - added the required property `error` to the response with the `424` status
  - added the required property `error` to the response with the `429` status
  - added the required property `error` to the response with the `500` status
  - added the required property `token` to the response with the `200` status
- **2023-02-03** `a9059df72b92` — 15 breaking, 8 warning, 6 info
  - the request property `parameters/seed` became not nullable
  - the response's body type/format changed from `object`/`` to `array`/`` for status `200`
  - the response's body type/format changed from `object`/`` to `array`/`` for status `422`
  - the response's body type/format changed from `object`/`` to `array`/`` for status `424`
  - the response's body type/format changed from `object`/`` to `array`/`` for status `429`
  - the response's body type/format changed from `object`/`` to `array`/`` for status `500`
  - removed the required property `error` from the response with the `422` status
  - removed the required property `error` from the response with the `424` status
  - removed the required property `error` from the response with the `429` status
  - removed the required property `error` from the response with the `500` status
  - removed the required property `error_type` from the response with the `422` status
  - removed the required property `error_type` from the response with the `424` status
  - removed the required property `error_type` from the response with the `429` status
  - removed the required property `error_type` from the response with the `500` status
  - removed the required property `token` from the response with the `200` status
  - removed the request property `parameters/best_of`
  - removed the request property `parameters/decoder_input_details`
  - removed the request property `parameters/return_full_text`
  - removed the request property `parameters/truncate`
  - removed the request property `parameters/typical_p`
  - removed the request property `parameters/watermark`
  - removed the optional property `details` from the response with the `200` status
  - removed the optional property `generated_text` from the response with the `200` status
  - the `seed` request property default value `null` was removed
  - media type `text/event-stream` was changed to a more specific media type `text/event-stream ` for the response status `200`
  - media type `text/event-stream` was changed to a more specific media type `text/event-stream ` for the response status `422`
  - media type `text/event-stream` was changed to a more specific media type `text/event-stream ` for the response status `424`
  - media type `text/event-stream` was changed to a more specific media type `text/event-stream ` for the response status `429`
  - media type `text/event-stream` was changed to a more specific media type `text/event-stream ` for the response status `500`

---

[Operation](https://skmtc.dev/preemo-inc/apis/text-generation-inference/docs/generate_stream/post.md) · [API](https://skmtc.dev/preemo-inc/apis/text-generation-inference.md) · [Page](https://skmtc.dev/preemo-inc/apis/text-generation-inference/changes/generate_stream/post)
