beamlit 0.0.20rc1__py3-none-any.whl → 0.0.20rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- beamlit/authentication/__init__.py +2 -2
- beamlit/authentication/credentials.py +1 -1
- beamlit/common/generate.py +2 -2
- {beamlit-0.0.20rc1.dist-info → beamlit-0.0.20rc2.dist-info}/METADATA +1 -1
- {beamlit-0.0.20rc1.dist-info → beamlit-0.0.20rc2.dist-info}/RECORD +6 -6
- {beamlit-0.0.20rc1.dist-info → beamlit-0.0.20rc2.dist-info}/WHEEL +0 -0
@@ -2,7 +2,7 @@ from .apikey import ApiKeyProvider
|
|
2
2
|
from .authentication import (PublicProvider, RunClientWithCredentials,
|
3
3
|
new_client_with_credentials)
|
4
4
|
from .credentials import (Config, ContextConfig, Credentials, WorkspaceConfig,
|
5
|
-
load_credentials,
|
5
|
+
load_credentials, load_credentials_from_settings)
|
6
6
|
from .device_mode import (BearerToken, DeviceLogin, DeviceLoginFinalizeRequest,
|
7
7
|
DeviceLoginFinalizeResponse, DeviceLoginResponse)
|
8
8
|
|
@@ -16,7 +16,7 @@ __all__ = (
|
|
16
16
|
"Credentials",
|
17
17
|
"WorkspaceConfig",
|
18
18
|
"load_credentials",
|
19
|
-
"
|
19
|
+
"load_credentials_from_settings",
|
20
20
|
"BearerToken",
|
21
21
|
"DeviceLogin",
|
22
22
|
"DeviceLoginFinalizeRequest",
|
@@ -116,7 +116,7 @@ def load_credentials(workspace_name: str) -> Credentials:
|
|
116
116
|
return workspace.credentials
|
117
117
|
return Credentials()
|
118
118
|
|
119
|
-
def
|
119
|
+
def load_credentials_from_settings(config: Settings) -> Credentials:
|
120
120
|
return Credentials(
|
121
121
|
api_key=config.api_key,
|
122
122
|
client_credentials=config.client_credentials
|
beamlit/common/generate.py
CHANGED
@@ -118,14 +118,14 @@ from langchain_core.callbacks import CallbackManagerForToolRun
|
|
118
118
|
from langchain_core.tools import BaseTool
|
119
119
|
from pydantic import BaseModel, Field
|
120
120
|
from beamlit.authentication import (RunClientWithCredentials,
|
121
|
-
|
121
|
+
load_credentials_from_settings,
|
122
122
|
new_client_with_credentials)
|
123
123
|
from beamlit.common.settings import get_settings
|
124
124
|
from beamlit.run import RunClient
|
125
125
|
|
126
126
|
logger = getLogger(__name__)
|
127
127
|
settings = get_settings()
|
128
|
-
credentials =
|
128
|
+
credentials = load_credentials_from_settings(settings)
|
129
129
|
|
130
130
|
client_config = RunClientWithCredentials(
|
131
131
|
credentials=credentials,
|
@@ -118,13 +118,13 @@ beamlit/api/workspaces/list_workspaces.py,sha256=FnmUumyrJeA-akmKDoz0K_DRiv-iiF_
|
|
118
118
|
beamlit/api/workspaces/remove_workspace_user.py,sha256=AxEG15Vwe-dFspQD21pYqEjsY-RO0_K-eoLpdkY-VEc,2667
|
119
119
|
beamlit/api/workspaces/update_workspace.py,sha256=qa5DV2UJSUYuB_ibALb4E9ghKpT1HaEIzIb9MOcDKv4,4241
|
120
120
|
beamlit/api/workspaces/update_workspace_user_role.py,sha256=Yn9iuJ4tKtauzBiJyU4-wYUMS9g98X2Om8zs7UkzrY8,4917
|
121
|
-
beamlit/authentication/__init__.py,sha256=
|
121
|
+
beamlit/authentication/__init__.py,sha256=4XS2flLWtu6deM9lE_dAVOMsNF-YzRofu2K0jvW6igw,872
|
122
122
|
beamlit/authentication/apikey.py,sha256=HvqWEd2IqcUuISvftqpi_lhd2fTQDHTf8M4O_k7HerU,489
|
123
123
|
beamlit/authentication/authentication.py,sha256=Al_ioKYVfGdS9urfENFqE12drzChD6l3sGWM68jHfXA,1219
|
124
124
|
beamlit/authentication/clientcredentials.py,sha256=OUzV_Kc5A2BIteM5u8r26NwQMs8oTHPqz9qAkSxwxH0,3744
|
125
|
-
beamlit/authentication/credentials.py,sha256=
|
125
|
+
beamlit/authentication/credentials.py,sha256=Ro7Pb_GRNuLF9MuDdOhRolnksnIFIWn5KPRNnT7c7_w,4830
|
126
126
|
beamlit/authentication/device_mode.py,sha256=Y4WVDH6guhdQKn8zIV5s93VWvtAIn4BsTikq_UnZw4c,3409
|
127
|
-
beamlit/common/generate.py,sha256=
|
127
|
+
beamlit/common/generate.py,sha256=u0HJ4YsZcbtkHJDeSEuufWCTuuyLdaF7yzJkZrrNZfI,7035
|
128
128
|
beamlit/common/logger.py,sha256=zuUVHsSSwH0REij0rDhBgZ0U7YvToDQu-SVS6ZBIDUg,948
|
129
129
|
beamlit/common/settings.py,sha256=-gx-ZerN51YnubrVGIo9h3FNncDs_3X2l1uEggd1-w0,4216
|
130
130
|
beamlit/common/utils.py,sha256=0KaC8vMa0AyIm4jTNgAJSsOYA1b191Q8AUF1up1RxFs,634
|
@@ -230,6 +230,6 @@ beamlit/models/update_workspace_user_role_body.py,sha256=fRTVmZEOjx4805gg_EXkI6m
|
|
230
230
|
beamlit/models/workspace.py,sha256=pJq3Qhy3DKUbmJ6F7FKU12DaN5LqZpFCILN67ki5JU4,3949
|
231
231
|
beamlit/models/workspace_labels.py,sha256=Ll5DMnOTmY1NDquVcDXf9Gyglb0_-ZM3KUM8u2trshE,1203
|
232
232
|
beamlit/models/workspace_user.py,sha256=iq-ObiW7sSrzu9NeGapa0Q0E7XRfdFSZQh0_4zBWlpY,3380
|
233
|
-
beamlit-0.0.
|
234
|
-
beamlit-0.0.
|
235
|
-
beamlit-0.0.
|
233
|
+
beamlit-0.0.20rc2.dist-info/METADATA,sha256=Hd0VneurSCI8yF_oEN6A3NNPMEqchkboOUMCoPb-3uY,1746
|
234
|
+
beamlit-0.0.20rc2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
235
|
+
beamlit-0.0.20rc2.dist-info/RECORD,,
|
File without changes
|