-
Notifications
You must be signed in to change notification settings - Fork 602
feat: Add responseModalities to GenerationConfig #6892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adds an optional `responseModalities` property to the `GenerationConfig` class. This allows specifying the desired modality types (e.g., TEXT, IMAGE, AUDIO) for the response. The changes include: - Adding `responseModalities: List<ResponseModality>?` to the `GenerationConfig` primary constructor. - Updating the `GenerationConfig.Builder` to include the new property. - Updating the internal `GenerationConfig.Internal` data class and the `toInternal` mapping for serialization.
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Vertex AI Mock Responses Check
|
Generated by 🚫 Danger |
Coverage Report 1Affected ProductsNo changes between base commit (51b4a1c) and merge commit (f1beacb).Test Logs |
Removes an extra parenthesis and corrects the mapping logic within the `toInternal()` function in `GenerationConfig.kt` that was introduced when adding the `responseModalities` property.
The public api surface has changed for the subproject firebase-vertexai: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
The public api surface has changed for the subproject firebase-vertexai: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
Adds an optional
responseModalities
property to theGenerationConfig
class. This allows specifying the desired modality types (e.g., TEXT, IMAGE, AUDIO) for the response.The changes include:
responseModalities: List<ResponseModality>?
to theGenerationConfig
primary constructor.GenerationConfig.Builder
to include the new property.GenerationConfig.Internal
data class and thetoInternal
mapping for serialization.