You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(FirebaseAI): Add support for imageConfig and new FinishReason cases
- 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.
0 commit comments