sprite ai
Make an SDK Upgrade Prove It Still Sends Your AI Sprite References
A Python client upgrade can break the route by which a sprite generator receives reference images. A test that replaces the SDK method with a mock may keep passing, because it verifies your wrapper's arguments instead of the actual request the client constructs.
Test the adapter at the HTTP boundary
Point the production client configuration at an offline transport. Configure a synthetic generation job with two harmless reference strings, a fixed model and PNG output. Record how many requests the transport sees and decode the outgoing JSON. Assert that both reference strings are in the vendor-specific field, and that the output format appears as a sibling of that field. Run the same fixture before and after changing the SDK dependency.
For the deliberate failure case, supply an unsupported Python keyword directly. The transport should remain empty if argument validation stops the call. A real rejected request would instead show up in the transport capture.
FrameSprite's technical guide and test fixture demonstrates the extra-body path with an OpenAI Python client configured for Recraft. A captured request establishes a serialization contract. Review the actual visual result separately, because a well-formed reference field cannot prove a good style match.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.