Skip to content

feat: add new parameters for image generation and multimodal conversa…#244

Merged
luk384090-cloud merged 32 commits into
mainfrom
dev/param
Jul 14, 2026
Merged

feat: add new parameters for image generation and multimodal conversa…#244
luk384090-cloud merged 32 commits into
mainfrom
dev/param

Conversation

@luk384090-cloud

Copy link
Copy Markdown
Collaborator

…tion

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several new parameters across various parameter classes to support advanced features such as thinking/reasoning modes, color palettes, reference image strength/mode, and stop words/tokens. Specifically, it updates ChatCompletionParam, ImageGenerationParam, ImageSynthesisParam, SketchImageSynthesisParam, and MultiModalConversationParam with their respective new fields, along with adding corresponding unit tests. A review comment highlights an issue in MultiModalConversationParam where configuring both stopStrings and stopTokens simultaneously results in stopTokens being silently ignored, and suggests throwing an IllegalArgumentException to handle this conflict.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

zhansheng.lzs and others added 6 commits July 7, 2026 15:08
Lists EPL-2.0 (JUnit Jupiter, JUnit Pioneer) and other third-party
components used in test scope to address license compliance.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…L env

Replaced hardcoded DEFAULT_BASE_HTTP_URL with taskGroup/task/function
based URL construction, allowing base URL override via environment
variable DASHSCOPE_HTTP_BASE_URL for custom endpoints.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Use default TingWu constructor instead of hardcoding the base URL,
consistent with the TingWu.java fix for environment variable support.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add IllegalArgumentException when both stopStrings and stopTokens are
configured simultaneously in ConversationParam, GenerationParam, and
MultiModalConversationParam to prevent silent parameter override.

Previously, stopTokens was silently ignored when both parameters were set
due to if-else structure. Now the SDK throws a clear error to help users
debug their configuration.
luk384090-cloud and others added 21 commits July 7, 2026 16:11
@luk384090-cloud
luk384090-cloud merged commit 3cc1807 into main Jul 14, 2026
4 of 5 checks passed
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.

1 participant