Update dependency @openrouter/ai-sdk-provider to ^2.10.0#333
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.9.1→^2.10.0Release Notes
OpenRouterTeam/ai-sdk-provider (@openrouter/ai-sdk-provider)
v2.10.0Minor Changes
#513
384f3c8Thanks @Robinnnnn! - Switch image generation to dedicated/api/v1/imagesendpointMigrates
OpenRouterImageModelfrom the legacy chat completions path (/chat/completionswithmodalities: ["image", "text"]) to OpenRouter's dedicated image generation endpoint (/images).Request changes:
{ model, prompt, n, size, aspect_ratio, seed, input_references }directly instead of wrapping in a chat messages arrayfilesare mapped toinput_references(array of{ type: "image_url", image_url: { url } }) instead of inline message content partsaspectRatiomaps toaspect_ratio(wasimage_config.aspect_ratio)sizeandnare now passed through (previously emitted warnings)Response changes:
{ created, data: [{ b64_json }], usage }instead of{ choices: [{ message: { images } }] }maxImagesPerCallupdated from 1 to 10 (the new endpoint supports batch generation)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.