mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
97d50513aa
- Generalize isPxpipeSupportedGptModel to the GPT-5 family (gpt-5, 5.x, -mini/-nano), default-on; [variant] tags stripped. - OpenAI render switches to the 768px portrait strip (GPT_STRIP_COLS=152) so the API's mandatory shortest-side->768 downscale never shrinks our 5px glyphs; downscale-free in both tile and patch regimes. - Add OpenAI vision-token cost model (resolveVisionCost/openAIVisionTokens) and rewire the Chat Completions profitability gate to use it instead of the Anthropic 750px/token model. - Add transformOpenAIResponses for the /v1/responses (Responses API) shape used by Codex: instructions + input items + flat tools -> rendered input_image parts; wire it into the proxy (was passthrough before). - Tests: +12 (gate family, vision-token math incl. downscale path, chat + responses transforms). 366 passing; Anthropic path unchanged. README intentionally not updated (GPT OCR fidelity unverified until tested).