-
Notifications
You must be signed in to change notification settings - Fork 805
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
feat(bentocloud): deployment v2 api client + cli #4335
Conversation
e187ce0
to
45cd52a
Compare
c53ddb9
to
b47cd78
Compare
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.
What about making get_rest_api_client
accept a version parameter instead of accessing via client.v1
?
def get_rest_api_client(version = "v2"):
...
return getattr(client, version)
I am not sure if we should do this, because some methods use both client_v1 = get_rest_api_client(version = "v1")
client_v2 = get_rest_api_client(version = "v2")
... |
This Why do we need v1 still? |
Only update and create deployment has v2 api. We will be using v1 api for all the rest of the endpoints: BentoML/src/bentoml/_internal/cloud/client.py Lines 539 to 555 in af2a794
|
Hmm I propose this: for v2 client it would just extends v1. So only |
Discussed with @aarnphm and @frostming , let's keep using |
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.
A few final comments. Then we can get this in
d157ccd
to
95a0de0
Compare
fde9712
to
e56534a
Compare
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.
Few things.
) | ||
# Moved atrributes to __init__ because otherwise it will keep all the log when running SDK. | ||
def __init__(self): | ||
self.log_progress = Progress(TextColumn("{task.description}")) |
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.
Note to @aarnphm: Here once migrate to tqdm.
fec0156
to
9d6047b
Compare
LGTM |
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.
LGTM
* feat: deployment v2 sdk * feat: cli * fix: bentoml.cloud.Resource object deprecation
* feat: deployment v2 sdk * feat: cli * fix: bentoml.cloud.Resource object deprecation
What does this PR address?
Before submitting:
guide on how to create a pull request.
pre-commit run -a
script has passed (instructions)?those accordingly? Here are documentation guidelines and tips on writting docs.