-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Support Vertex Flex API in GeminiModelHandler #36982
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
Conversation
|
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
|
assign set of reviewers |
|
Assigning reviewers: R: @tvalentyn for label python. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Thanks!
Running pylint... |
|
Seems like adding a small integration test case would be reasonable for this, just as an extra sanity check |
Integration testing isn't possible at the moment:
We can add one once the API is launched publicly. WDYT? |
Removed the unused mock. Not sure why "tox -e py3-yapf" is not remove this line. |
|
yapf changes formatting but doesn't modify content semantically. |
|
actually mypy is still failing. |
|
python -m pytest apache_beam/ml/inference/gemini_inference_test.py Successfully set waiting utils config apache_beam/ml/inference/gemini_inference_test.py ........ [100%] ================================================================================================ 8 passed in 3.32s ================================================================================================ |
The ClientOption was swapped somehow by some autocompletion tool. I should have checked more thoroughly. Now verified locally that all unit tests pass. |
|
there is still a linter error FYI. |
it complains about this import syntax: my local check passed: But anyway let me follow the check's preference. |
|
yeah, isort is a separate check. you might be able to also run @jrmccluskey do you by chance have instructions for running isort locally, similar to https://github.com/apache/beam/blob/master/contributor-docs/python-tips.md#running-yapf-formatter-manually ? |
|
The remaining one failed check seems to be a flake: |
This reverts commit 72e84ef.
No description provided.