mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-08 12:51:39 +00:00
Mocks the OpenAI SDK at the module boundary, boots a real PuterServer for the wired MeteringService, and exercises construction (xAI base URL, missing-key throw), model catalog (default + verbatim list), test_mode bypass, prompt validation, the credit gate (402 before SDK), model resolution (alias and unknown-id fallback), and the success path covering URL/b64_json branches plus per-image metering with the expected microcent override. closes #2988