Skip to content

Support for Gemini 2.5? #3303

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

Open
ubarua123 opened this issue May 23, 2025 · 1 comment
Open

Support for Gemini 2.5? #3303

ubarua123 opened this issue May 23, 2025 · 1 comment

Comments

@ubarua123
Copy link

Expected Behavior

Support for latest parameters like thinkingConfig which is missing from the API right now

Current Behavior

Missing API from ChatConfig

Context

Right now, because of this I can't use thinkingConfig for gemini 2.5 and it might trigger "thinking" even if I don't want to because it is enabled by default which results in a LOT of tokens usage.

@argmnt
Copy link

argmnt commented May 25, 2025

Seems like under org.springframework.ai.vertexai.gemini VertexAiGeminiChatModel class uses google.cloud.vertexai.v1.GenerationConfig (1.22.0) and this comes from Google client SDK and this class does not support thinkingConfig since spring-ai v1.0.0 uses com.google.api.grpc:proto-google-cloud-vertexai-v1:1.22.0.

@markpollack Is it planned to integrate the newer versions of Google Client SDK at the moment?

Cause seems like newer SDKs supports thinkingConfig

Newer Version Google Client SDK

Thanks for answer in advance

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

No branches or pull requests

2 participants