mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
4c4b77c17b
transformOpenAIChatCompletions set info.outgoingTextChars = countOutgoingTextChars(req) before returning; transformOpenAIResponses set info.compressed = true and returned without it. That field is the regression denominator (tokens ≈ α·outgoingTextChars + β·imagePixels), so compressed Responses rows silently carried no denominator. - add countResponsesOutgoingTextChars(): instructions + message-item text (string or input_text parts, via responsesContentText so input_image base64 is excluded) + flat tool name/description/parameters - set it on the Responses success path, mirroring the Chat path - test asserts outgoingTextChars > 0 for a compressed Responses request