Skip to content

fix: default steps to None so Google models are not rejected#2

Open
kamalkalwa wants to merge 1 commit intoRunware:mainfrom
kamalkalwa:fix/optional-steps-default
Open

fix: default steps to None so Google models are not rejected#2
kamalkalwa wants to merge 1 commit intoRunware:mainfrom
kamalkalwa:fix/optional-steps-default

Conversation

@kamalkalwa
Copy link
Copy Markdown

Summary

Google provider models (Imagen, Nano Banana) return an API error when
steps is included in the request. The hardcoded default of 20 meant
steps was always sent because optional_params filtering only skips
None values.

Changes

  • imageInference: steps default 20None
  • photoMaker: steps default 20None

Models that support steps will use their server-side defaults when
the parameter is not explicitly provided.

Fixes #1

Google provider models (Imagen, Nano Banana) reject requests
that include a steps parameter. The hardcoded default of 20
caused steps to always be included in API requests since the
optional_params filter only skips None values.

Setting the default to None allows models that support steps
to use their server-side defaults, while models that do not
support the parameter no longer receive it.

Fixes Runware#1
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.

[BUG] Google models (Imagen, Nano Banana) fail due to steps parameter default value

1 participant