bentoml / BentoML

The easiest way to serve AI apps and models - Build reliable Inference APIs, LLM apps, Multi-model chains, RAG service, and much more!

Home Page:https://bentoml.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: Cloud Login without CLI

holzweber opened this issue · comments

Feature request

I want to be able to log in with python to my endpoint.
Example:

from bentoml.cloud import login
login(endpoint="abc.com", token="1234") # Update current context with the endpoint similar to CLI command

Motivation

So far I have only seend to login via the CLI command: https://docs.bentoml.org/en/latest/bentocloud/reference/bentocloud-cli.html#bentoml-cloud-login

Other

No response

Now we respect login credentials from env vars:

import os

os.environ.update(BENTO_CLOUD_API_KEY="...", BENTO_CLOUD_API_ENDPOINT="...")

Very nice! Thank you for the quick response! 💯