MCPcopy Create free account
hub / github.com/codehamr/codehamr / streamOptions

Struct streamOptions

internal/llm/llm.go:85–87  ·  view source on GitHub ↗

streamOptions: without include_usage, OpenAI-compatible servers omit the usage block in the SSE tail chunk and the per-turn token counter sits at 0.

Source from the content-addressed store, hash-verified

83
84// streamOptions: without include_usage, OpenAI-compatible servers omit the
85// usage block in the SSE tail chunk and the per-turn token counter sits at 0.
86type streamOptions struct {
87 IncludeUsage bool `json:"include_usage"`
88}
89
90// streamChunk is one OpenAI SSE frame. finish_reason is deliberately never

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected