Files
magpie/internal/gateway/testdata/upstream_bodies
yetoneandump45nose 1e080cc7e7 gateway: the saved Anthropic-to-Responses body carries the image's detail auto that the commit before it sends (#1474)
TestUpstreamBodiesUnchanged (5feadabe, added after ump45nose's branch)
saved the bytes a vendor gets before input_image carried detail, so it
went red with the fix. Re-saved with UPDATE_UPSTREAM_BODIES=1; the only
byte change is "detail":"auto" on the one input_image.

Run: the two new tests fail on the old responses.go and pass on the new;
openai-python's ResponseInputImageParam (pydantic TypeAdapter) refuses
the old shape with "detail Field required" and takes the new one.

Co-authored-by: ump45nose <52391318+ump45nose@users.noreply.github.com>
2026-10-13 05:09:18 +08:00
..