You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 thetransforms
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
The text was updated successfully, but these errors were encountered: