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

Function TestChatReadsUsageTokens

internal/llm/llm_test.go:395–415  ·  view source on GitHub ↗

TestChatReadsUsageTokens: tokens come from `usage.completion_tokens` (and prompt_tokens rides along for the debug-log calibration), not content length; we trust what the backend reports.

(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