-
Notifications
You must be signed in to change notification settings - Fork 965
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
Use a new KAGGLE_GRPC_DATA_PROXY_URL env variable for gRPC proxying #1337
Conversation
@@ -29,7 +30,6 @@ def test_disabled(self): | |||
env.set("KAGGLE_DATA_PROXY_TOKEN", "foobar") | |||
env.set("KAGGLE_DATA_PROXY_URL", self.http_endpoint) | |||
env.set("KAGGLE_GRPC_DATA_PROXY_URL", self.grpc_endpoint) | |||
env.set("KAGGLE_GOOGLE_GENERATIVE_AI_USE_REST_ONLY", "True") |
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.
@Philmod I set this env variable because the test is creating the HTTP server endpoint. Without this, palm.list_models()
is actually calling the gRPC endpoint, which is not being spun up in this test, so this will always pass and isn't testing what we want it to test.
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.
That was the goal: this test file is named *_disabled
, I wanted to check it wasn't hitting the http server.
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.
@psbang Unless I'm missing something?
http://b/308644984