truefoundry 0.7.0rc5__py3-none-any.whl → 0.7.0rc6__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.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

@@ -249,10 +249,11 @@ def deploy_component(
249
249
  workspace_id = get_workspace_by_fqn(workspace_fqn).id
250
250
  if isinstance(component, autogen_models.ApplicationSet):
251
251
  updated_component = component.copy(deep=True)
252
- for i in range(len(updated_component.components)):
253
- updated_component.components[i] = _handle_if_local_source(
254
- component=component.components[i], workspace_fqn=workspace_fqn
255
- )
252
+ if updated_component.components:
253
+ for i, subcomponent in enumerate(updated_component.components):
254
+ updated_component.components[i] = _handle_if_local_source(
255
+ component=subcomponent, workspace_fqn=workspace_fqn
256
+ )
256
257
  else:
257
258
  updated_component = _handle_if_local_source(
258
259
  component=component, workspace_fqn=workspace_fqn
@@ -49,17 +49,22 @@ def render_prompt(
49
49
 
50
50
  # Merge parameters from model_configuration and extra_parameters
51
51
  model_configuration = prompt_template.model_configuration
52
- parameters = {
53
- **(
54
- model_configuration.parameters.dict()
55
- if model_configuration.parameters
56
- else {}
57
- ),
58
- **(model_configuration.extra_parameters or {}),
59
- }
52
+ if model_configuration:
53
+ model = model_configuration.model
54
+ parameters = {
55
+ **(
56
+ model_configuration.parameters.dict()
57
+ if model_configuration.parameters
58
+ else {}
59
+ ),
60
+ **(model_configuration.extra_parameters or {}),
61
+ }
62
+ else:
63
+ model = None
64
+ parameters = {}
60
65
 
61
66
  return {
62
67
  "messages": rendered_messages,
63
- "model": model_configuration.model,
68
+ "model": model,
64
69
  "parameters": {k: v for k, v in parameters.items() if v is not None},
65
70
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truefoundry
3
- Version: 0.7.0rc5
3
+ Version: 0.7.0rc6
4
4
  Summary: TrueFoundry CLI
5
5
  Author-email: TrueFoundry Team <abhishek@truefoundry.com>
6
6
  Requires-Python: <3.14,>=3.8.1
@@ -30,7 +30,7 @@ Requires-Dist: requirements-parser<0.12.0,>=0.11.0
30
30
  Requires-Dist: rich-click<2.0.0,>=1.2.1
31
31
  Requires-Dist: rich<14.0.0,>=13.7.1
32
32
  Requires-Dist: tqdm<5.0.0,>=4.0.0
33
- Requires-Dist: truefoundry-sdk==0.0.14
33
+ Requires-Dist: truefoundry-sdk==0.0.15
34
34
  Requires-Dist: typing-extensions>=4.0
35
35
  Requires-Dist: urllib3<3,>=1.26.18
36
36
  Requires-Dist: yq<4.0.0,>=3.1.0
@@ -108,7 +108,7 @@ truefoundry/deploy/lib/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
108
108
  truefoundry/deploy/lib/model/entity.py,sha256=Bp9sLB-M5INCpw5lPmFdygHWS1zvnLicnSiSCi2iqhQ,8591
109
109
  truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
110
  truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
111
- truefoundry/deploy/v2/lib/deploy.py,sha256=Og7P6S3Gc8pXRudf2luk2IOb_5oMGoz-h0rQcLWaw7M,11708
111
+ truefoundry/deploy/v2/lib/deploy.py,sha256=EOqVQTCMrvs_Kwp8Ft0FZYlRErPuFq4eDBDR1qEZ7_E,11767
112
112
  truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=G5BzMIbap8pgDX1eY-TITruUxQdkKhYtBmRwLL6lDeY,14342
113
113
  truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=xbHFD3pURflvCm8EODPvjfvRrv67mlSrjPUknY8SMB8,4060
114
114
  truefoundry/deploy/v2/lib/models.py,sha256=ogc1UYs1Z2nBdGSKCrde9sk8d0GxFKMkem99uqO5CmM,1148
@@ -125,7 +125,7 @@ truefoundry/ml/logger.py,sha256=VT-BF3BnBYTWVq87O58F0c8uXMu94gYzsiFlGY3_7Ao,458
125
125
  truefoundry/ml/mlfoundry_api.py,sha256=WiIVpJRylBn8NrcAmXClQnavffqI9fhY5h-8Vwx4RKo,59872
126
126
  truefoundry/ml/mlfoundry_run.py,sha256=34yyQqgpG6EfrAJd37vkbCjrFoHkhvbOAxxSQcSWPtY,44320
127
127
  truefoundry/ml/model_framework.py,sha256=nVbKTtKDRBdLzt7Wrg5_vJKZ-awHbISGvL73s-V9egU,18975
128
- truefoundry/ml/prompt_utils.py,sha256=muN0P9OTKtm9SLr25e0U0W1vx_v9vWxV3tvAUUC-8HE,2514
128
+ truefoundry/ml/prompt_utils.py,sha256=8FueyElVTXLnLtC3O6hKsW_snocArr_B8KG3Qv6eFIQ,2651
129
129
  truefoundry/ml/run_utils.py,sha256=0W208wSLUrbdfk2pjNcZlkUi9bNxG2JORqoe-5rVqHI,2423
130
130
  truefoundry/ml/session.py,sha256=2v8JjFyrcKzKQ8qsTaZaQTqlxl-in9odIMyWWMEqWNY,4436
131
131
  truefoundry/ml/validation_utils.py,sha256=rmIBNcpmnwq2jeje6uFg8uY-rL4JG_RV6mc6BlujVWg,12150
@@ -376,7 +376,7 @@ truefoundry/workflow/remote_filesystem/__init__.py,sha256=LQ95ViEjJ7Ts4JcCGOxMPs
376
376
  truefoundry/workflow/remote_filesystem/logger.py,sha256=em2l7D6sw7xTLDP0kQSLpgfRRCLpN14Qw85TN7ujQcE,1022
377
377
  truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=xcT0wQmQlgzcj0nP3tJopyFSVWT1uv3nhiTIuwfXYeg,12342
378
378
  truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=nSGPZu0Gyd_jz0KsEE-7w_BmnTD8CVF1S8cUJoxaCbc,13305
379
- truefoundry-0.7.0rc5.dist-info/METADATA,sha256=qY09MnUMrEQSVOCK9FYPjgcRNiK8UzEr4U1wp0xE35c,2410
380
- truefoundry-0.7.0rc5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
381
- truefoundry-0.7.0rc5.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
382
- truefoundry-0.7.0rc5.dist-info/RECORD,,
379
+ truefoundry-0.7.0rc6.dist-info/METADATA,sha256=CyewIaGgVeJ6zIPKki7jyXhuyDdQ_OI2M8gV6i3h55I,2410
380
+ truefoundry-0.7.0rc6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
381
+ truefoundry-0.7.0rc6.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
382
+ truefoundry-0.7.0rc6.dist-info/RECORD,,