Files
DSP-AIDandz 134a11bc6b test(chat): text generation edge cases through the relay, and a JWKS cache reset for tests
Fourteen hermetic tests drive /v1/chat/completions through the relay with scripted
upstreams: long context, strict JSON modes, parallel and streamed tool calls,
reasoning blocks, completion ceilings, truncation, and streams the vendor left open.

internal/iam.ForgetJWKSCache drops one endpoint's cached key set. The cache is keyed by
URL and an httptest server hands its port to the next one, so the IAM double of one test
could verify a token against a previous test's keys and fail with a rsa verification
error. withIAM now calls it.

Rebased from #150 by @DSP-AID: the stream-closing change in streamCaptureUsage is
dropped (#161 fixes the same gap), and the stream-interruption test asserts that
behavior instead.

Fixes #132

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-12 19:17:34 -08:00
..