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

Function TestChatStructuredErrorPrefersProviderHint

internal/llm/llm_test.go:547–567  ·  view source on GitHub ↗

TestChatStructuredErrorPrefersProviderHint: the hamrpass proxy wraps upstream errors as `{"error":{"message":...,"provider_hint":...}}`. The client must surface provider_hint over message, so users see the useful "retry shortly" text, not "upstream rate limited".

(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