Skip to content

StreamOptions

Options controlling streaming behavior for LLM API calls. Passed alongside the model options when streaming is enabled.

---
title: StreamOptions
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class StreamOptions {
        +boolean includeUsage
    }
includeUsage: true
NameTypeDescription
includeUsagebooleanWhen true, the final streaming chunk includes token usage statistics