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

Function TestChatSendsStreamIncludeUsage

internal/llm/llm_test.go:346–358  ·  view source on GitHub ↗

TestChatSendsStreamIncludeUsage: servers emit the usage block only when `stream_options.include_usage:true` is in the request; without it the per-turn token counter sits at 0. Every Chat call must ship the flag.

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

sseOKFunction · 0.85
collectFunction · 0.85
ChatMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected