WebInfer

Streaming Text

Loading preview...

Configurable Props

4 props

All props are optional. When not provided, the component uses sensible defaults for demo purposes.

PropTypeDescriptionDefault
defaultPrompt?stringInitial prompt valueDEFAULT_PROMPT ("Write a haiku about artificial intel...)
placeholder?stringPlaceholder for input"Enter your prompt..."
temperature?numberTemperature for generation (0-1)0.8
maxTokens?numberMax tokens for generation200

Component Data

  • ID:streaming-text
  • Category:Text Generation
  • Groups:
    ✍️ Content
    🛠️ UX Upgrades
  • Uses:WebInferClientstreamText
  • Tags:
    Text
    Streaming
    Real-time

Streaming Text

Real-time streaming response with chunk-by-chunk rendering