Skip to content
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

Add US tenant configuration options #227

Open
virtualroot opened this issue Dec 11, 2024 · 0 comments
Open

Add US tenant configuration options #227

virtualroot opened this issue Dec 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@virtualroot
Copy link

virtualroot commented Dec 11, 2024

User Story
As a User
I want to be able to reach the US tenant without an environment variable
So that it's the default option after setting it up

Behaviors:

CLI flag

$ deepset-cloud --tenant us upload ./examples/data # To override the default tenant only

configuration file

$ deepset-cloud configure set tenant us # US tenant becomes the default
cat ~/.config/deepset-cloud/config.toml
tenant = us
$ deepset-cloud upload ./examples/data

SDK

from deepset_cloud_sdk.workflows.sync_client.files import upload
from deepset_cloud_sdk.config import initialize

options = {
    "tenant": "us",
    "api_key": "<foobar>",
}

initialize(**options)

upload(
	...
)
@virtualroot virtualroot added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant