Skip to content

Add ImageConfig to GenerationConfig and add new FinishReason types.#145

Merged
Plytas merged 3 commits into
google-gemini-php:mainfrom
shaxaaa:feature/image-config-finish-reasons
Nov 10, 2025
Merged

Add ImageConfig to GenerationConfig and add new FinishReason types.#145
Plytas merged 3 commits into
google-gemini-php:mainfrom
shaxaaa:feature/image-config-finish-reasons

Conversation

@shaxaaa

@shaxaaa shaxaaa commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

https://ai.google.dev/api/generate-content#FinishReason has added a couple of new reasons:

  • IMAGE_PROHIBITED_CONTENT - Image generation stopped because generated images has other prohibited content.
  • IMAGE_OTHER - Image generation stopped because of other miscellaneous issue.
  • NO_IMAGE - The model was expected to generate an image, but none was generated.
  • IMAGE_RECITATION - Image generation stopped due to recitation.

Added also https://ai.google.dev/api/generate-content#ImageConfig for image generation features to GenerateConfig.

Comment thread src/Data/GenerationConfig.php Outdated
@Plytas
Plytas merged commit 2e76d0f into google-gemini-php:main Nov 10, 2025
10 checks passed
@Plytas

Plytas commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

Thanks!

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.

2 participants