Skip to content

Streaming ​

Receive output incrementally using Server-Sent Events.

Enable streaming ​

Set stream: true in a Chat Completions request. Read each data: event, append choices[0].delta.content, and stop when the server sends [DONE].

LAYSO AI API 文档