Skip to content

Disable transforming requests by default, unless configured accordingly. #4

@may

Description

@may

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions