-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Implemented completion task for Google VertexAI #128694
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
Merged
jonathan-buttner
merged 14 commits into
elastic:main
from
leo-hoet:google-vertexai-completion
Jun 9, 2025
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a9df8e3
Google Vertex AI completion model, response entity and tests
leo-hoet 80af6d3
Fixed GoogleVertexAiServiceTest for Service configuration
leo-hoet ca1b6d5
Changelog
leo-hoet b6f5e34
Removed downcasting and using `moveToFirstToken`
leo-hoet ce6d45f
Create GoogleVertexAiChatCompletionResponseHandler for streaming and …
leo-hoet 6cf0c0b
Added unit tests
leo-hoet 7eabd29
PR feedback
leo-hoet 55d8650
Removed googlevertexaicompletion model. Using just GoogleVertexAiChat…
leo-hoet bf27166
Renamed uri -> nonStreamingUri. Added streamingUri and getters in Goo…
leo-hoet ab1fe7a
Moved rateLimitGroupHashing to subclasses of GoogleVertexAiModel
leo-hoet 20f1914
Merge branch 'main' into google-vertexai-completion
lhoet-google 30f53cd
Fixed rate limit has of GoogleVertexAiRerankModel and refactored uri …
leo-hoet 5d20b35
Merge branch 'google-vertexai-completion' of github.com:leo-hoet/elas…
leo-hoet 2b865af
Merge branch 'main' into google-vertexai-completion
jonathan-buttner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
.../xpack/inference/services/googlevertexai/GoogleVertexAiChatCompletionResponseHandler.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
...rch/xpack/inference/services/googlevertexai/completion/GoogleVertexAiCompletionModel.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I should keep this class or delete it and use the base class instead.
Also, I am using
GoogleVertexAiUnifiedChatCompletionResponseHandler.GoogleVertexAiErrorResponse::fromResponse. I preferred to use it that way and avoid putting that in a common class betweenGoogleVertexAiUnifiedChatCompletionResponseHandlerandGoogleVertexAiChatCompletionResponseHandlerto avoid extending the class hierarchy, but let me know if you think otherwiseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you, I'd probably use the base class. If you want to keep this one, then I don't think we need to accept the
requestType. I think we can set it in this class directly.Nice! That looks good.