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

Function TestChatMidStreamErrorFrameSurfacesAsError

internal/llm/llm_test.go:366–390  ·  view source on GitHub ↗

TestChatMidStreamErrorFrameSurfacesAsError: OpenAI-compatible backends (and OpenRouter-style proxies like the hosted endpoint) report a post-200 provider failure as a final `data: {"error":{...}}` frame followed by connection close with no [DONE]. That frame must surface as EventError; left undecode

(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

collectFunction · 0.85
ChatMethod · 0.80
ErrorMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected