mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-20 14:13:23 +00:00
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