Skip to content

Conversation

thatfiredev
Copy link
Member

No description provided.

- Defines the new `ImageConfig` struct.
- Defines a new `AspectRatio` struct with constants for common aspect ratios, which is used by `ImageConfig`.
- Updates `GenerationConfig` to include the optional `imageConfig` field.
- Adds a unit test to verify the correct encoding of `GenerationConfig` with `imageConfig`.
- Aligns `ImageConfig` with `ThinkingConfig` by removing unnecessary annotations and making properties internal.
- Adds `NO_IMAGE`, `IMAGE_SAFETY`, `IMAGE_PROHIBITED_CONTENT`, `IMAGE_RECITATION`, and `IMAGE_OTHER` to the `FinishReason` enum in `GenerateContentResponse`.
- Adds unit tests to verify the correct deserialization of the new finish reasons.
@google-oss-bot
Copy link

2 Warnings
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)
⚠️ New public headers were added, did you remember to add them to the umbrella header?

Generated by 🚫 Danger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants