We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swanlab.login
如题,我打算将设置web host、api host的能力整合进swanlab.login
我们知道在sdk中SWANLAB_WEB_HOST和SWANLAB_API_HOST两个环境变量分别用于表示云端前端的url和后端url。目前,用户如果需要修改此环境变量必须使用如下方式:
SWANLAB_WEB_HOST
SWANLAB_API_HOST
os.environ["SWANLAB_API_HOST"] = "https://xxx" os.environ["SWANLAB_WEB_HOST"] = "https://xxx"
这通常过于繁琐,也不符合人机交互直觉,因此需要拓展这部分功能——此外,这也为后面私有化部署做准备。
swanlab.login(api_key="", host="xxx")
设置host参数可以同时设置web host 和 api host,我们约定api host 为web host的/api子路由下的内容。为了保证函数简洁性,不支持分别设置web host和api host(如果有这需求,还是用os.environ进行设置)
web host
api host
/api
os.environ
The text was updated successfully, but these errors were encountered:
关于CLI的交互用法:
swanlab login --host=https://xxx
Sorry, something went wrong.
简单来讲:
swanlab.init
如果未执行swanlab.login,且在swanlab.init中发现用户并没有存储api key,则会进行 #632 的逻辑。这里有个问题是目前并不允许选择host。
这里有个问题是目前并不允许选择host
目前先不管此问题
SAKURA-CAT
No branches or pull requests
🤩 Features description [Please make everyone to understand it]
如题,我打算将设置web host、api host的能力整合进
swanlab.login
👍 What problem does this feature solve
我们知道在sdk中
SWANLAB_WEB_HOST
和SWANLAB_API_HOST
两个环境变量分别用于表示云端前端的url和后端url。目前,用户如果需要修改此环境变量必须使用如下方式:这通常过于繁琐,也不符合人机交互直觉,因此需要拓展这部分功能——此外,这也为后面私有化部署做准备。
👾 What does the proposed API look like
设置host参数可以同时设置
web host
和api host
,我们约定api host
为web host
的/api
子路由下的内容。为了保证函数简洁性,不支持分别设置web host
和api host
(如果有这需求,还是用os.environ
进行设置)The text was updated successfully, but these errors were encountered: