Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Outline

Streaming Chat Example

Demonstrates real-time token streaming using Model.ChatStream. Each token is printed to the terminal as it arrives, rather than waiting for the full response.

Build

go build -o streaming ./examples/streaming/

Usage

# With a local GGUF model file
./streaming --model ./models/gemma-3-1b-Q4_K_M.gguf

# With a HuggingFace model ID (downloads on first use)
./streaming --model google/gemma-3-1b

Type a message and press Enter. Tokens stream to the terminal in real time. Type quit to exit.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.