Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Display SERV output as it arrives over server-sent events.
stream: true
const stream = await client.chat.completions.create({ model: "gpt-5.4-mini", stream: true, messages: [ { role: "system", content: "You are a concise technical writer." }, { role: "user", content: "Explain database indexes in three paragraphs." }, ], }); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? ""); }