If I'm reading the help correctly, OpenRouter is now transforming requests by default.
To prevent this, we need to modify lib/open_router/client.rb, line 40, to always send an empty array for the transforms parameter (unless, obviously, the user has specified a transformer).
OLD:
parameters[:transforms] = transforms if transforms.any?
NEW:
parameters[:transforms] = transforms
The method signature sets transforms to an empty array by default, which is what we need.
https://openrouter.ai/docs/transforms
Note: All OpenRouter models default to using middle-out, unless you exclude this transform by e.g. setting transforms: [] in the request body.
If I'm reading the help correctly, OpenRouter is now transforming requests by default.
To prevent this, we need to modify
lib/open_router/client.rb, line 40, to always send an empty array for thetransformsparameter (unless, obviously, the user has specified a transformer).OLD:
parameters[:transforms] = transforms if transforms.any?NEW:
parameters[:transforms] = transformsThe method signature sets
transformsto an empty array by default, which is what we need.https://openrouter.ai/docs/transforms