lightning-sdk 0.2.24rc0__py3-none-any.whl → 0.2.24rc1__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +18 -2
- lightning_sdk/lightning_cloud/openapi/__init__.py +6 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +13 -1
- lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +3 -29
- lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_action_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -27
- lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
- lightning_sdk/llm/llm.py +6 -1
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/METADATA +1 -1
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/RECORD +36 -30
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/LICENSE +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/WHEEL +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-0.2.24rc0.dist-info → lightning_sdk-0.2.24rc1.dist-info}/top_level.txt +0 -0
|
@@ -41,7 +41,9 @@ class V1UserFeatures(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'academic_tier': 'bool',
|
|
44
45
|
'accurate_billing': 'bool',
|
|
46
|
+
'add_data_v2': 'bool',
|
|
45
47
|
'affiliate_links': 'bool',
|
|
46
48
|
'agents_v2': 'bool',
|
|
47
49
|
'ai_hub_monetization': 'bool',
|
|
@@ -53,6 +55,7 @@ class V1UserFeatures(object):
|
|
|
53
55
|
'capacity_reservation_byoc': 'bool',
|
|
54
56
|
'capacity_reservation_dry_run': 'bool',
|
|
55
57
|
'chat_models': 'bool',
|
|
58
|
+
'cloudspace_schedules': 'bool',
|
|
56
59
|
'cloudy_vibe_code': 'bool',
|
|
57
60
|
'code_tab': 'bool',
|
|
58
61
|
'collab_screen_sharing': 'bool',
|
|
@@ -70,6 +73,7 @@ class V1UserFeatures(object):
|
|
|
70
73
|
'featured_studios_admin': 'bool',
|
|
71
74
|
'gcs_connections_optimized': 'bool',
|
|
72
75
|
'gcs_folders': 'bool',
|
|
76
|
+
'gcs_fuse': 'bool',
|
|
73
77
|
'instant_capacity_reservation': 'bool',
|
|
74
78
|
'job_artifacts_v2': 'bool',
|
|
75
79
|
'kubernetes_clusters': 'bool',
|
|
@@ -90,11 +94,11 @@ class V1UserFeatures(object):
|
|
|
90
94
|
'nebius_cpu_studios': 'bool',
|
|
91
95
|
'nebius_gpu_studios': 'bool',
|
|
92
96
|
'nerf_fs_nonpaying': 'bool',
|
|
97
|
+
'onboarding_v2': 'bool',
|
|
93
98
|
'org_level_member_permissions': 'bool',
|
|
94
99
|
'org_usage_limits': 'bool',
|
|
95
100
|
'paygo_free_storage_limit_check': 'bool',
|
|
96
101
|
'persistent_disk': 'bool',
|
|
97
|
-
'pipelines': 'bool',
|
|
98
102
|
'plugin_distributed': 'bool',
|
|
99
103
|
'plugin_inference': 'bool',
|
|
100
104
|
'plugin_label_studio': 'bool',
|
|
@@ -118,6 +122,7 @@ class V1UserFeatures(object):
|
|
|
118
122
|
'specialised_studios': 'bool',
|
|
119
123
|
'storage_overuse_deletion': 'bool',
|
|
120
124
|
'studio_config': 'bool',
|
|
125
|
+
'studio_sharing_v2': 'bool',
|
|
121
126
|
'studio_version_visibility': 'bool',
|
|
122
127
|
'trainium2': 'bool',
|
|
123
128
|
'use_internal_data_connection_mounts': 'bool',
|
|
@@ -130,7 +135,9 @@ class V1UserFeatures(object):
|
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
attribute_map = {
|
|
138
|
+
'academic_tier': 'academicTier',
|
|
133
139
|
'accurate_billing': 'accurateBilling',
|
|
140
|
+
'add_data_v2': 'addDataV2',
|
|
134
141
|
'affiliate_links': 'affiliateLinks',
|
|
135
142
|
'agents_v2': 'agentsV2',
|
|
136
143
|
'ai_hub_monetization': 'aiHubMonetization',
|
|
@@ -142,6 +149,7 @@ class V1UserFeatures(object):
|
|
|
142
149
|
'capacity_reservation_byoc': 'capacityReservationByoc',
|
|
143
150
|
'capacity_reservation_dry_run': 'capacityReservationDryRun',
|
|
144
151
|
'chat_models': 'chatModels',
|
|
152
|
+
'cloudspace_schedules': 'cloudspaceSchedules',
|
|
145
153
|
'cloudy_vibe_code': 'cloudyVibeCode',
|
|
146
154
|
'code_tab': 'codeTab',
|
|
147
155
|
'collab_screen_sharing': 'collabScreenSharing',
|
|
@@ -159,6 +167,7 @@ class V1UserFeatures(object):
|
|
|
159
167
|
'featured_studios_admin': 'featuredStudiosAdmin',
|
|
160
168
|
'gcs_connections_optimized': 'gcsConnectionsOptimized',
|
|
161
169
|
'gcs_folders': 'gcsFolders',
|
|
170
|
+
'gcs_fuse': 'gcsFuse',
|
|
162
171
|
'instant_capacity_reservation': 'instantCapacityReservation',
|
|
163
172
|
'job_artifacts_v2': 'jobArtifactsV2',
|
|
164
173
|
'kubernetes_clusters': 'kubernetesClusters',
|
|
@@ -179,11 +188,11 @@ class V1UserFeatures(object):
|
|
|
179
188
|
'nebius_cpu_studios': 'nebiusCpuStudios',
|
|
180
189
|
'nebius_gpu_studios': 'nebiusGpuStudios',
|
|
181
190
|
'nerf_fs_nonpaying': 'nerfFsNonpaying',
|
|
191
|
+
'onboarding_v2': 'onboardingV2',
|
|
182
192
|
'org_level_member_permissions': 'orgLevelMemberPermissions',
|
|
183
193
|
'org_usage_limits': 'orgUsageLimits',
|
|
184
194
|
'paygo_free_storage_limit_check': 'paygoFreeStorageLimitCheck',
|
|
185
195
|
'persistent_disk': 'persistentDisk',
|
|
186
|
-
'pipelines': 'pipelines',
|
|
187
196
|
'plugin_distributed': 'pluginDistributed',
|
|
188
197
|
'plugin_inference': 'pluginInference',
|
|
189
198
|
'plugin_label_studio': 'pluginLabelStudio',
|
|
@@ -207,6 +216,7 @@ class V1UserFeatures(object):
|
|
|
207
216
|
'specialised_studios': 'specialisedStudios',
|
|
208
217
|
'storage_overuse_deletion': 'storageOveruseDeletion',
|
|
209
218
|
'studio_config': 'studioConfig',
|
|
219
|
+
'studio_sharing_v2': 'studioSharingV2',
|
|
210
220
|
'studio_version_visibility': 'studioVersionVisibility',
|
|
211
221
|
'trainium2': 'trainium2',
|
|
212
222
|
'use_internal_data_connection_mounts': 'useInternalDataConnectionMounts',
|
|
@@ -218,9 +228,11 @@ class V1UserFeatures(object):
|
|
|
218
228
|
'writable_s3_connections': 'writableS3Connections'
|
|
219
229
|
}
|
|
220
230
|
|
|
221
|
-
def __init__(self, accurate_billing: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, chat_models: 'bool' =None, cloudy_vibe_code: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, concurrent_gpu_limit: 'bool' =None, control_center_monitoring: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, data_connection_flushing_v2: 'bool' =None, datasets: 'bool' =None, default_one_cluster: 'bool' =None, deployment_persistent_disk: 'bool' =None, drive_v2: 'bool' =None, enterprise_compute_admin: 'bool' =None, fair_share: 'bool' =None, featured_studios_admin: 'bool' =None, gcs_connections_optimized: 'bool' =None, gcs_folders: 'bool' =None, instant_capacity_reservation: 'bool' =None, job_artifacts_v2: 'bool' =None, kubernetes_clusters: 'bool' =None, lambda_labs: 'bool' =None, lambda_labs_studios: 'bool' =None, landing_studios: 'bool' =None, lit_logger: 'bool' =None, litcr_byoc_gcp: 'bool' =None, machine_selector_v2: 'bool' =None, marketplace: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_api_dashboard: 'bool' =None, multicloud_folders: 'bool' =None, multicloud_saas: 'bool' =None, multiple_studio_versions: 'bool' =None, nebius: 'bool' =None, nebius_cpu_studios: 'bool' =None, nebius_gpu_studios: 'bool' =None, nerf_fs_nonpaying: 'bool' =None,
|
|
231
|
+
def __init__(self, academic_tier: 'bool' =None, accurate_billing: 'bool' =None, add_data_v2: 'bool' =None, affiliate_links: 'bool' =None, agents_v2: 'bool' =None, ai_hub_monetization: 'bool' =None, auto_fast_load: 'bool' =None, auto_join_orgs: 'bool' =None, b2c_experience: 'bool' =None, cap_add: 'list[str]' =None, cap_drop: 'list[str]' =None, capacity_reservation_byoc: 'bool' =None, capacity_reservation_dry_run: 'bool' =None, chat_models: 'bool' =None, cloudspace_schedules: 'bool' =None, cloudy_vibe_code: 'bool' =None, code_tab: 'bool' =None, collab_screen_sharing: 'bool' =None, concurrent_gpu_limit: 'bool' =None, control_center_monitoring: 'bool' =None, cost_attribution_settings: 'bool' =None, custom_app_domain: 'bool' =None, data_connection_flushing_v2: 'bool' =None, datasets: 'bool' =None, default_one_cluster: 'bool' =None, deployment_persistent_disk: 'bool' =None, drive_v2: 'bool' =None, enterprise_compute_admin: 'bool' =None, fair_share: 'bool' =None, featured_studios_admin: 'bool' =None, gcs_connections_optimized: 'bool' =None, gcs_folders: 'bool' =None, gcs_fuse: 'bool' =None, instant_capacity_reservation: 'bool' =None, job_artifacts_v2: 'bool' =None, kubernetes_clusters: 'bool' =None, lambda_labs: 'bool' =None, lambda_labs_studios: 'bool' =None, landing_studios: 'bool' =None, lit_logger: 'bool' =None, litcr_byoc_gcp: 'bool' =None, machine_selector_v2: 'bool' =None, marketplace: 'bool' =None, mmt_fault_tolerance: 'bool' =None, mmt_strategy_selector: 'bool' =None, model_api_dashboard: 'bool' =None, multicloud_folders: 'bool' =None, multicloud_saas: 'bool' =None, multiple_studio_versions: 'bool' =None, nebius: 'bool' =None, nebius_cpu_studios: 'bool' =None, nebius_gpu_studios: 'bool' =None, nerf_fs_nonpaying: 'bool' =None, onboarding_v2: 'bool' =None, org_level_member_permissions: 'bool' =None, org_usage_limits: 'bool' =None, paygo_free_storage_limit_check: 'bool' =None, persistent_disk: 'bool' =None, plugin_distributed: 'bool' =None, plugin_inference: 'bool' =None, plugin_label_studio: 'bool' =None, plugin_langflow: 'bool' =None, plugin_python_profiler: 'bool' =None, plugin_service: 'bool' =None, plugin_sweeps: 'bool' =None, pricing_updates: 'bool' =None, product_generator: 'bool' =None, product_license: 'bool' =None, project_selector: 'bool' =None, publish_pipelines: 'bool' =None, r2_data_connections: 'bool' =None, reserved_machines_tab: 'bool' =None, restartable_jobs: 'bool' =None, runnable_public_studio_page: 'bool' =None, security_docs: 'bool' =None, show_dev_admin: 'bool' =None, single_wallet: 'bool' =None, slurm: 'bool' =None, specialised_studios: 'bool' =None, storage_overuse_deletion: 'bool' =None, studio_config: 'bool' =None, studio_sharing_v2: 'bool' =None, studio_version_visibility: 'bool' =None, trainium2: 'bool' =None, use_internal_data_connection_mounts: 'bool' =None, use_rclone_mounts_only: 'bool' =None, voltage_park: 'bool' =None, voltage_park_studios: 'bool' =None, vultr: 'bool' =None, weka: 'bool' =None, writable_s3_connections: 'bool' =None): # noqa: E501
|
|
222
232
|
"""V1UserFeatures - a model defined in Swagger""" # noqa: E501
|
|
233
|
+
self._academic_tier = None
|
|
223
234
|
self._accurate_billing = None
|
|
235
|
+
self._add_data_v2 = None
|
|
224
236
|
self._affiliate_links = None
|
|
225
237
|
self._agents_v2 = None
|
|
226
238
|
self._ai_hub_monetization = None
|
|
@@ -232,6 +244,7 @@ class V1UserFeatures(object):
|
|
|
232
244
|
self._capacity_reservation_byoc = None
|
|
233
245
|
self._capacity_reservation_dry_run = None
|
|
234
246
|
self._chat_models = None
|
|
247
|
+
self._cloudspace_schedules = None
|
|
235
248
|
self._cloudy_vibe_code = None
|
|
236
249
|
self._code_tab = None
|
|
237
250
|
self._collab_screen_sharing = None
|
|
@@ -249,6 +262,7 @@ class V1UserFeatures(object):
|
|
|
249
262
|
self._featured_studios_admin = None
|
|
250
263
|
self._gcs_connections_optimized = None
|
|
251
264
|
self._gcs_folders = None
|
|
265
|
+
self._gcs_fuse = None
|
|
252
266
|
self._instant_capacity_reservation = None
|
|
253
267
|
self._job_artifacts_v2 = None
|
|
254
268
|
self._kubernetes_clusters = None
|
|
@@ -269,11 +283,11 @@ class V1UserFeatures(object):
|
|
|
269
283
|
self._nebius_cpu_studios = None
|
|
270
284
|
self._nebius_gpu_studios = None
|
|
271
285
|
self._nerf_fs_nonpaying = None
|
|
286
|
+
self._onboarding_v2 = None
|
|
272
287
|
self._org_level_member_permissions = None
|
|
273
288
|
self._org_usage_limits = None
|
|
274
289
|
self._paygo_free_storage_limit_check = None
|
|
275
290
|
self._persistent_disk = None
|
|
276
|
-
self._pipelines = None
|
|
277
291
|
self._plugin_distributed = None
|
|
278
292
|
self._plugin_inference = None
|
|
279
293
|
self._plugin_label_studio = None
|
|
@@ -297,6 +311,7 @@ class V1UserFeatures(object):
|
|
|
297
311
|
self._specialised_studios = None
|
|
298
312
|
self._storage_overuse_deletion = None
|
|
299
313
|
self._studio_config = None
|
|
314
|
+
self._studio_sharing_v2 = None
|
|
300
315
|
self._studio_version_visibility = None
|
|
301
316
|
self._trainium2 = None
|
|
302
317
|
self._use_internal_data_connection_mounts = None
|
|
@@ -307,8 +322,12 @@ class V1UserFeatures(object):
|
|
|
307
322
|
self._weka = None
|
|
308
323
|
self._writable_s3_connections = None
|
|
309
324
|
self.discriminator = None
|
|
325
|
+
if academic_tier is not None:
|
|
326
|
+
self.academic_tier = academic_tier
|
|
310
327
|
if accurate_billing is not None:
|
|
311
328
|
self.accurate_billing = accurate_billing
|
|
329
|
+
if add_data_v2 is not None:
|
|
330
|
+
self.add_data_v2 = add_data_v2
|
|
312
331
|
if affiliate_links is not None:
|
|
313
332
|
self.affiliate_links = affiliate_links
|
|
314
333
|
if agents_v2 is not None:
|
|
@@ -331,6 +350,8 @@ class V1UserFeatures(object):
|
|
|
331
350
|
self.capacity_reservation_dry_run = capacity_reservation_dry_run
|
|
332
351
|
if chat_models is not None:
|
|
333
352
|
self.chat_models = chat_models
|
|
353
|
+
if cloudspace_schedules is not None:
|
|
354
|
+
self.cloudspace_schedules = cloudspace_schedules
|
|
334
355
|
if cloudy_vibe_code is not None:
|
|
335
356
|
self.cloudy_vibe_code = cloudy_vibe_code
|
|
336
357
|
if code_tab is not None:
|
|
@@ -365,6 +386,8 @@ class V1UserFeatures(object):
|
|
|
365
386
|
self.gcs_connections_optimized = gcs_connections_optimized
|
|
366
387
|
if gcs_folders is not None:
|
|
367
388
|
self.gcs_folders = gcs_folders
|
|
389
|
+
if gcs_fuse is not None:
|
|
390
|
+
self.gcs_fuse = gcs_fuse
|
|
368
391
|
if instant_capacity_reservation is not None:
|
|
369
392
|
self.instant_capacity_reservation = instant_capacity_reservation
|
|
370
393
|
if job_artifacts_v2 is not None:
|
|
@@ -405,6 +428,8 @@ class V1UserFeatures(object):
|
|
|
405
428
|
self.nebius_gpu_studios = nebius_gpu_studios
|
|
406
429
|
if nerf_fs_nonpaying is not None:
|
|
407
430
|
self.nerf_fs_nonpaying = nerf_fs_nonpaying
|
|
431
|
+
if onboarding_v2 is not None:
|
|
432
|
+
self.onboarding_v2 = onboarding_v2
|
|
408
433
|
if org_level_member_permissions is not None:
|
|
409
434
|
self.org_level_member_permissions = org_level_member_permissions
|
|
410
435
|
if org_usage_limits is not None:
|
|
@@ -413,8 +438,6 @@ class V1UserFeatures(object):
|
|
|
413
438
|
self.paygo_free_storage_limit_check = paygo_free_storage_limit_check
|
|
414
439
|
if persistent_disk is not None:
|
|
415
440
|
self.persistent_disk = persistent_disk
|
|
416
|
-
if pipelines is not None:
|
|
417
|
-
self.pipelines = pipelines
|
|
418
441
|
if plugin_distributed is not None:
|
|
419
442
|
self.plugin_distributed = plugin_distributed
|
|
420
443
|
if plugin_inference is not None:
|
|
@@ -461,6 +484,8 @@ class V1UserFeatures(object):
|
|
|
461
484
|
self.storage_overuse_deletion = storage_overuse_deletion
|
|
462
485
|
if studio_config is not None:
|
|
463
486
|
self.studio_config = studio_config
|
|
487
|
+
if studio_sharing_v2 is not None:
|
|
488
|
+
self.studio_sharing_v2 = studio_sharing_v2
|
|
464
489
|
if studio_version_visibility is not None:
|
|
465
490
|
self.studio_version_visibility = studio_version_visibility
|
|
466
491
|
if trainium2 is not None:
|
|
@@ -480,6 +505,27 @@ class V1UserFeatures(object):
|
|
|
480
505
|
if writable_s3_connections is not None:
|
|
481
506
|
self.writable_s3_connections = writable_s3_connections
|
|
482
507
|
|
|
508
|
+
@property
|
|
509
|
+
def academic_tier(self) -> 'bool':
|
|
510
|
+
"""Gets the academic_tier of this V1UserFeatures. # noqa: E501
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
:return: The academic_tier of this V1UserFeatures. # noqa: E501
|
|
514
|
+
:rtype: bool
|
|
515
|
+
"""
|
|
516
|
+
return self._academic_tier
|
|
517
|
+
|
|
518
|
+
@academic_tier.setter
|
|
519
|
+
def academic_tier(self, academic_tier: 'bool'):
|
|
520
|
+
"""Sets the academic_tier of this V1UserFeatures.
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
:param academic_tier: The academic_tier of this V1UserFeatures. # noqa: E501
|
|
524
|
+
:type: bool
|
|
525
|
+
"""
|
|
526
|
+
|
|
527
|
+
self._academic_tier = academic_tier
|
|
528
|
+
|
|
483
529
|
@property
|
|
484
530
|
def accurate_billing(self) -> 'bool':
|
|
485
531
|
"""Gets the accurate_billing of this V1UserFeatures. # noqa: E501
|
|
@@ -501,6 +547,27 @@ class V1UserFeatures(object):
|
|
|
501
547
|
|
|
502
548
|
self._accurate_billing = accurate_billing
|
|
503
549
|
|
|
550
|
+
@property
|
|
551
|
+
def add_data_v2(self) -> 'bool':
|
|
552
|
+
"""Gets the add_data_v2 of this V1UserFeatures. # noqa: E501
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
:return: The add_data_v2 of this V1UserFeatures. # noqa: E501
|
|
556
|
+
:rtype: bool
|
|
557
|
+
"""
|
|
558
|
+
return self._add_data_v2
|
|
559
|
+
|
|
560
|
+
@add_data_v2.setter
|
|
561
|
+
def add_data_v2(self, add_data_v2: 'bool'):
|
|
562
|
+
"""Sets the add_data_v2 of this V1UserFeatures.
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
:param add_data_v2: The add_data_v2 of this V1UserFeatures. # noqa: E501
|
|
566
|
+
:type: bool
|
|
567
|
+
"""
|
|
568
|
+
|
|
569
|
+
self._add_data_v2 = add_data_v2
|
|
570
|
+
|
|
504
571
|
@property
|
|
505
572
|
def affiliate_links(self) -> 'bool':
|
|
506
573
|
"""Gets the affiliate_links of this V1UserFeatures. # noqa: E501
|
|
@@ -732,6 +799,27 @@ class V1UserFeatures(object):
|
|
|
732
799
|
|
|
733
800
|
self._chat_models = chat_models
|
|
734
801
|
|
|
802
|
+
@property
|
|
803
|
+
def cloudspace_schedules(self) -> 'bool':
|
|
804
|
+
"""Gets the cloudspace_schedules of this V1UserFeatures. # noqa: E501
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
:return: The cloudspace_schedules of this V1UserFeatures. # noqa: E501
|
|
808
|
+
:rtype: bool
|
|
809
|
+
"""
|
|
810
|
+
return self._cloudspace_schedules
|
|
811
|
+
|
|
812
|
+
@cloudspace_schedules.setter
|
|
813
|
+
def cloudspace_schedules(self, cloudspace_schedules: 'bool'):
|
|
814
|
+
"""Sets the cloudspace_schedules of this V1UserFeatures.
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
:param cloudspace_schedules: The cloudspace_schedules of this V1UserFeatures. # noqa: E501
|
|
818
|
+
:type: bool
|
|
819
|
+
"""
|
|
820
|
+
|
|
821
|
+
self._cloudspace_schedules = cloudspace_schedules
|
|
822
|
+
|
|
735
823
|
@property
|
|
736
824
|
def cloudy_vibe_code(self) -> 'bool':
|
|
737
825
|
"""Gets the cloudy_vibe_code of this V1UserFeatures. # noqa: E501
|
|
@@ -1089,6 +1177,27 @@ class V1UserFeatures(object):
|
|
|
1089
1177
|
|
|
1090
1178
|
self._gcs_folders = gcs_folders
|
|
1091
1179
|
|
|
1180
|
+
@property
|
|
1181
|
+
def gcs_fuse(self) -> 'bool':
|
|
1182
|
+
"""Gets the gcs_fuse of this V1UserFeatures. # noqa: E501
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
:return: The gcs_fuse of this V1UserFeatures. # noqa: E501
|
|
1186
|
+
:rtype: bool
|
|
1187
|
+
"""
|
|
1188
|
+
return self._gcs_fuse
|
|
1189
|
+
|
|
1190
|
+
@gcs_fuse.setter
|
|
1191
|
+
def gcs_fuse(self, gcs_fuse: 'bool'):
|
|
1192
|
+
"""Sets the gcs_fuse of this V1UserFeatures.
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
:param gcs_fuse: The gcs_fuse of this V1UserFeatures. # noqa: E501
|
|
1196
|
+
:type: bool
|
|
1197
|
+
"""
|
|
1198
|
+
|
|
1199
|
+
self._gcs_fuse = gcs_fuse
|
|
1200
|
+
|
|
1092
1201
|
@property
|
|
1093
1202
|
def instant_capacity_reservation(self) -> 'bool':
|
|
1094
1203
|
"""Gets the instant_capacity_reservation of this V1UserFeatures. # noqa: E501
|
|
@@ -1509,6 +1618,27 @@ class V1UserFeatures(object):
|
|
|
1509
1618
|
|
|
1510
1619
|
self._nerf_fs_nonpaying = nerf_fs_nonpaying
|
|
1511
1620
|
|
|
1621
|
+
@property
|
|
1622
|
+
def onboarding_v2(self) -> 'bool':
|
|
1623
|
+
"""Gets the onboarding_v2 of this V1UserFeatures. # noqa: E501
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
:return: The onboarding_v2 of this V1UserFeatures. # noqa: E501
|
|
1627
|
+
:rtype: bool
|
|
1628
|
+
"""
|
|
1629
|
+
return self._onboarding_v2
|
|
1630
|
+
|
|
1631
|
+
@onboarding_v2.setter
|
|
1632
|
+
def onboarding_v2(self, onboarding_v2: 'bool'):
|
|
1633
|
+
"""Sets the onboarding_v2 of this V1UserFeatures.
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
:param onboarding_v2: The onboarding_v2 of this V1UserFeatures. # noqa: E501
|
|
1637
|
+
:type: bool
|
|
1638
|
+
"""
|
|
1639
|
+
|
|
1640
|
+
self._onboarding_v2 = onboarding_v2
|
|
1641
|
+
|
|
1512
1642
|
@property
|
|
1513
1643
|
def org_level_member_permissions(self) -> 'bool':
|
|
1514
1644
|
"""Gets the org_level_member_permissions of this V1UserFeatures. # noqa: E501
|
|
@@ -1593,27 +1723,6 @@ class V1UserFeatures(object):
|
|
|
1593
1723
|
|
|
1594
1724
|
self._persistent_disk = persistent_disk
|
|
1595
1725
|
|
|
1596
|
-
@property
|
|
1597
|
-
def pipelines(self) -> 'bool':
|
|
1598
|
-
"""Gets the pipelines of this V1UserFeatures. # noqa: E501
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
:return: The pipelines of this V1UserFeatures. # noqa: E501
|
|
1602
|
-
:rtype: bool
|
|
1603
|
-
"""
|
|
1604
|
-
return self._pipelines
|
|
1605
|
-
|
|
1606
|
-
@pipelines.setter
|
|
1607
|
-
def pipelines(self, pipelines: 'bool'):
|
|
1608
|
-
"""Sets the pipelines of this V1UserFeatures.
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
:param pipelines: The pipelines of this V1UserFeatures. # noqa: E501
|
|
1612
|
-
:type: bool
|
|
1613
|
-
"""
|
|
1614
|
-
|
|
1615
|
-
self._pipelines = pipelines
|
|
1616
|
-
|
|
1617
1726
|
@property
|
|
1618
1727
|
def plugin_distributed(self) -> 'bool':
|
|
1619
1728
|
"""Gets the plugin_distributed of this V1UserFeatures. # noqa: E501
|
|
@@ -2097,6 +2206,27 @@ class V1UserFeatures(object):
|
|
|
2097
2206
|
|
|
2098
2207
|
self._studio_config = studio_config
|
|
2099
2208
|
|
|
2209
|
+
@property
|
|
2210
|
+
def studio_sharing_v2(self) -> 'bool':
|
|
2211
|
+
"""Gets the studio_sharing_v2 of this V1UserFeatures. # noqa: E501
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
:return: The studio_sharing_v2 of this V1UserFeatures. # noqa: E501
|
|
2215
|
+
:rtype: bool
|
|
2216
|
+
"""
|
|
2217
|
+
return self._studio_sharing_v2
|
|
2218
|
+
|
|
2219
|
+
@studio_sharing_v2.setter
|
|
2220
|
+
def studio_sharing_v2(self, studio_sharing_v2: 'bool'):
|
|
2221
|
+
"""Sets the studio_sharing_v2 of this V1UserFeatures.
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
:param studio_sharing_v2: The studio_sharing_v2 of this V1UserFeatures. # noqa: E501
|
|
2225
|
+
:type: bool
|
|
2226
|
+
"""
|
|
2227
|
+
|
|
2228
|
+
self._studio_sharing_v2 = studio_sharing_v2
|
|
2229
|
+
|
|
2100
2230
|
@property
|
|
2101
2231
|
def studio_version_visibility(self) -> 'bool':
|
|
2102
2232
|
"""Gets the studio_version_visibility of this V1UserFeatures. # noqa: E501
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
external/v1/auth_service.proto
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: version not set
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
|
|
12
|
+
NOTE
|
|
13
|
+
----
|
|
14
|
+
standard swagger-codegen-cli for this python client has been modified
|
|
15
|
+
by custom templates. The purpose of these templates is to include
|
|
16
|
+
typing information in the API and Model code. Please refer to the
|
|
17
|
+
main grid repository for more info
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import pprint
|
|
21
|
+
import re # noqa: F401
|
|
22
|
+
|
|
23
|
+
from typing import TYPE_CHECKING
|
|
24
|
+
|
|
25
|
+
import six
|
|
26
|
+
|
|
27
|
+
if TYPE_CHECKING:
|
|
28
|
+
from datetime import datetime
|
|
29
|
+
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
|
+
|
|
31
|
+
class VolumesIdBody(object):
|
|
32
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
"""
|
|
37
|
+
Attributes:
|
|
38
|
+
swagger_types (dict): The key is attribute name
|
|
39
|
+
and the value is attribute type.
|
|
40
|
+
attribute_map (dict): The key is attribute name
|
|
41
|
+
and the value is json key in definition.
|
|
42
|
+
"""
|
|
43
|
+
swagger_types = {
|
|
44
|
+
'volume': 'V1Volume'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'volume': 'volume'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, volume: 'V1Volume' =None): # noqa: E501
|
|
52
|
+
"""VolumesIdBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._volume = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if volume is not None:
|
|
56
|
+
self.volume = volume
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def volume(self) -> 'V1Volume':
|
|
60
|
+
"""Gets the volume of this VolumesIdBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The volume of this VolumesIdBody. # noqa: E501
|
|
64
|
+
:rtype: V1Volume
|
|
65
|
+
"""
|
|
66
|
+
return self._volume
|
|
67
|
+
|
|
68
|
+
@volume.setter
|
|
69
|
+
def volume(self, volume: 'V1Volume'):
|
|
70
|
+
"""Sets the volume of this VolumesIdBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param volume: The volume of this VolumesIdBody. # noqa: E501
|
|
74
|
+
:type: V1Volume
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._volume = volume
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(VolumesIdBody, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'VolumesIdBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, VolumesIdBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'VolumesIdBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
lightning_sdk/llm/llm.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
|
-
from typing import AsyncGenerator, ClassVar, Dict, Generator, List, Optional, Tuple, Union
|
|
3
|
+
from typing import Any, AsyncGenerator, ClassVar, Dict, Generator, List, Optional, Tuple, Union
|
|
4
4
|
|
|
5
5
|
from lightning_sdk.api.llm_api import LLMApi
|
|
6
6
|
from lightning_sdk.lightning_cloud.openapi.models.v1_conversation_response_chunk import V1ConversationResponseChunk
|
|
@@ -194,6 +194,7 @@ class LLM:
|
|
|
194
194
|
conversation: Optional[str] = None,
|
|
195
195
|
metadata: Optional[Dict[str, str]] = None,
|
|
196
196
|
stream: bool = False,
|
|
197
|
+
**kwargs: Any,
|
|
197
198
|
) -> Union[str, AsyncGenerator[str, None]]:
|
|
198
199
|
conversation_id = self._conversations.get(conversation) if conversation else None
|
|
199
200
|
output = await self._llm_api.async_start_conversation(
|
|
@@ -207,6 +208,7 @@ class LLM:
|
|
|
207
208
|
metadata=metadata,
|
|
208
209
|
name=conversation,
|
|
209
210
|
stream=stream,
|
|
211
|
+
**kwargs,
|
|
210
212
|
)
|
|
211
213
|
if not stream:
|
|
212
214
|
if conversation and not conversation_id:
|
|
@@ -223,6 +225,7 @@ class LLM:
|
|
|
223
225
|
conversation: Optional[str] = None,
|
|
224
226
|
metadata: Optional[Dict[str, str]] = None,
|
|
225
227
|
stream: bool = False,
|
|
228
|
+
**kwargs: Any,
|
|
226
229
|
) -> Union[str, Generator[str, None, None]]:
|
|
227
230
|
if conversation and conversation not in self._conversations:
|
|
228
231
|
self._get_conversations()
|
|
@@ -245,6 +248,7 @@ class LLM:
|
|
|
245
248
|
conversation,
|
|
246
249
|
metadata,
|
|
247
250
|
stream,
|
|
251
|
+
**kwargs,
|
|
248
252
|
)
|
|
249
253
|
|
|
250
254
|
output = self._llm_api.start_conversation(
|
|
@@ -258,6 +262,7 @@ class LLM:
|
|
|
258
262
|
metadata=metadata,
|
|
259
263
|
name=conversation,
|
|
260
264
|
stream=stream,
|
|
265
|
+
**kwargs,
|
|
261
266
|
)
|
|
262
267
|
if not stream:
|
|
263
268
|
if conversation and not conversation_id:
|