Skip to content

Use a new KAGGLE_GRPC_DATA_PROXY_URL env variable for gRPC proxying#1337

Merged
Philmod merged 5 commits intomainfrom
grpc-data-proxy-url
Dec 6, 2023
Merged

Use a new KAGGLE_GRPC_DATA_PROXY_URL env variable for gRPC proxying#1337
Philmod merged 5 commits intomainfrom
grpc-data-proxy-url

Conversation

@Philmod
Copy link
Copy Markdown
Contributor

@Philmod Philmod commented Dec 5, 2023

@Philmod Philmod requested review from psbang and rosbo December 5, 2023 19:58
@Philmod Philmod merged commit 2ac180a into main Dec 6, 2023
@Philmod Philmod deleted the grpc-data-proxy-url branch December 6, 2023 11:18
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")
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.

@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.

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor Author

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?

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.

3 participants