beamlit 0.0.29rc28__py3-none-any.whl → 0.0.29rc30__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ class Settings(BaseSettings):
60
60
  base_url: str = Field(default="https://api.beamlit.com/v0")
61
61
  run_url: str = Field(default="https://run.beamlit.com")
62
62
  mcp_hub_url: str = Field(default="https://mcp-hub-server.beamlit.workers.com")
63
- registry_url: str = Field(default="https://serverless-registry-production.beamlit.workers.com")
63
+ registry_url: str = Field(default="https://us.registry.beamlit.com")
64
64
  log_level: str = Field(default="INFO")
65
65
  agent: SettingsAgent = SettingsAgent()
66
66
  server: SettingsServer = SettingsServer()
@@ -69,10 +69,10 @@ class Settings(BaseSettings):
69
69
  def __init__(self, **data):
70
70
  super().__init__(**data)
71
71
  if os.getenv('BL_ENV') == 'dev':
72
- self.base_url = "https://api.beamlit.dev/v0"
73
- self.run_url = "https://run.beamlit.dev"
74
- self.mcp_hub_url = "https://mcp-hub-server.beamlit.workers.dev"
75
- self.registry_url = "https://serverless-registry-production.beamlit.workers.dev"
72
+ self.base_url = os.getenv('BL_BASE_URL') or "https://api.beamlit.dev/v0"
73
+ self.run_url = os.getenv('BL_RUN_URL') or "https://run.beamlit.dev"
74
+ self.mcp_hub_url = os.getenv('BL_MCP_HUB_URL') or "https://mcp-hub-server.beamlit.workers.dev"
75
+ self.registry_url = os.getenv('BL_REGISTRY_URL') or "https://eu.registry.beamlit.dev"
76
76
 
77
77
  @classmethod
78
78
  def settings_customise_sources(
beamlit/deploy/deploy.py CHANGED
@@ -29,8 +29,8 @@ def set_default_values(resource: Resource, deployment: Agent | Function):
29
29
  deployment.metadata.environment = settings.environment
30
30
  if not deployment.metadata.name:
31
31
  deployment.metadata.name = resource.name
32
- if not deployment.metadata.displayName:
33
- deployment.metadata.displayName = deployment.metadata.name
32
+ if not deployment.metadata.display_name:
33
+ deployment.metadata.display_name = deployment.metadata.name
34
34
  if not deployment.spec.description:
35
35
  deployment.spec.description = get_description(None, resource)
36
36
  if not deployment.spec.runtime:
@@ -111,14 +111,14 @@ apiVersion: beamlit.com/v1alpha1
111
111
  kind: Agent
112
112
  metadata:
113
113
  name: {agent.metadata.name}
114
- displayName: {agent.metadata.displayName or agent.metadata.name}
114
+ displayName: {agent.metadata.display_name or agent.metadata.name}
115
115
  environment: {settings.environment}
116
116
  workspace: {settings.workspace}
117
117
  spec:
118
118
  enabled: true
119
119
  policies: [{", ".join(agent.spec.policies or [])}]
120
120
  functions: [{", ".join([f"{function.metadata.name}" for (_, function) in functions])}]
121
- agentChain: {format_agent_chain(agent.spec.agentChain)}
121
+ agentChain: {format_agent_chain(agent.spec.agent_chain)}
122
122
  model: {agent.spec.model}
123
123
  runtime:
124
124
  image: {agent.spec.runtime.image}
@@ -145,7 +145,7 @@ apiVersion: beamlit.com/v1alpha1
145
145
  kind: Function
146
146
  metadata:
147
147
  name: {function.metadata.name}
148
- displayName: {function.metadata.displayName or function.metadata.name}
148
+ displayName: {function.metadata.display_name or function.metadata.name}
149
149
  environment: {settings.environment}
150
150
  spec:
151
151
  enabled: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beamlit
3
- Version: 0.0.29rc28
3
+ Version: 0.0.29rc30
4
4
  Summary: Add your description here
5
5
  Author-email: cploujoux <ch.ploujoux@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -133,10 +133,10 @@ beamlit/common/generate.py,sha256=LtdCju_QayRS4lZrrb_0VHqWWvTcv4Mbf-iV1TB_Qko,75
133
133
  beamlit/common/instrumentation.py,sha256=MsBDfFcMYqGDiHHj4j5hLHE4EWxZExkhmCeFS3SKzJY,3181
134
134
  beamlit/common/logger.py,sha256=VFRbaZh93n8ZGugeeYKe88IP2nI3g2JNa7XN4j8wVJE,1116
135
135
  beamlit/common/secrets.py,sha256=sid81bOe3LflkMKDHwBsBs9nIju8bp5-v9qU9gkyNMc,212
136
- beamlit/common/settings.py,sha256=uge6-VTioSILA9lgPpKc5V7MaSEMuHYHfCQhwdqHteE,5831
136
+ beamlit/common/settings.py,sha256=bxgQxMV5ncNqDGcWS_Wj3nzOF8FgAmC6alMP2fOdEDU,5895
137
137
  beamlit/common/utils.py,sha256=jouz5igBvT37Xn_e94-foCHyQczVim-UzVcoIF6RWJ4,657
138
138
  beamlit/deploy/__init__.py,sha256=GS7l7Jtm2yKs7iNLKcfjYO-rAhUzggQ3xiYSf3oxLBY,91
139
- beamlit/deploy/deploy.py,sha256=rXpiAqlO36Ul1eadBEiwiil-6R2DkbaYHzw-qcqZ0g4,9183
139
+ beamlit/deploy/deploy.py,sha256=on1i93SdECKrLVRMm3V2BRW5JeolPPq1dJHa4Evp0ns,9188
140
140
  beamlit/deploy/format.py,sha256=78tOoeNPJ8969AhQTeFlIwZgQ3un8gmTSMmrYbRQSds,1818
141
141
  beamlit/deploy/parser.py,sha256=uT-bezLX6yjyxr1ogm1GXIT_MeREqHDUBlKiyav5qg0,6912
142
142
  beamlit/functions/__init__.py,sha256=_RPG1Bfg54JGdIPnViAU6n9zD7E1cDNsdXi8oYGskzE,138
@@ -254,6 +254,6 @@ beamlit/serve/app.py,sha256=OpwPjRdyHZK6J-ziPwhiRDGGa2mvCrFVcBFE6alJVOM,3071
254
254
  beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
255
255
  beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
256
256
  beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
257
- beamlit-0.0.29rc28.dist-info/METADATA,sha256=UVbjc-yv-ZhbPjwVM9Ngq4A0igVBwugwKpP-EoZVodQ,2405
258
- beamlit-0.0.29rc28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
259
- beamlit-0.0.29rc28.dist-info/RECORD,,
257
+ beamlit-0.0.29rc30.dist-info/METADATA,sha256=6-VFTeQPP-z_5qCUf-kLXKSzfmaZkvbjocg1oGUJIY0,2405
258
+ beamlit-0.0.29rc30.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
259
+ beamlit-0.0.29rc30.dist-info/RECORD,,