Skip to content

fix(openai): forward additional_params in image generation request - #2264

Open
Moeweb647252 wants to merge 1 commit into
0xPlaygrounds:mainfrom
Moeweb647252:main
Open

fix(openai): forward additional_params in image generation request#2264
Moeweb647252 wants to merge 1 commit into
0xPlaygrounds:mainfrom
Moeweb647252:main

Conversation

@Moeweb647252

Copy link
Copy Markdown

Description

The OpenAI provider built the /images/generations body from model, prompt and size only, silently dropping ImageGenerationRequest.additional_params (e.g. quality, reference-image inputs). Merge them in after the response_format default so caller-supplied params take precedence.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have added tests that prove the fix is effective
  • New and existing unit tests pass locally with my changes

The OpenAI provider built the /images/generations body from model, prompt
and size only, silently dropping ImageGenerationRequest.additional_params
(e.g. quality, reference-image inputs). Merge them in after the
response_format default so caller-supplied params take precedence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant