tinybird 4.5.9.dev0__py3-none-any.whl → 4.5.10.dev0__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.
tinybird/tb/__cli__.py CHANGED
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/forward/commands'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '4.5.9.dev0'
8
- __revision__ = '4b9bf45'
7
+ __version__ = '4.5.10.dev0'
8
+ __revision__ = 'f7f4fc9'
@@ -1476,19 +1476,22 @@ def analyze_quarantine(datasource_name: str, project: Project, client: TinyB):
1476
1476
  user_token = config.get_user_token()
1477
1477
  click.echo(FeedbackManager.gray(message=f"\n» Analyzing errors in {datasource_name}_quarantine..."))
1478
1478
  if user_token:
1479
- llm = LLM(user_token=user_token, host=config.get_client().host)
1480
- ds_filenames = project.get_datasource_files()
1481
- datasource_definition = next(
1482
- (Path(f).read_text() for f in ds_filenames if f.endswith(f"{datasource_name}.datasource")), ""
1483
- )
1484
- response_llm = llm.ask(
1485
- system_prompt=quarantine_prompt(datasource_definition),
1486
- prompt=f"The quarantine errors are:\n{json.dumps(quarantine_data)}",
1487
- feature="tb_datasource_append_analyze_quarantine",
1488
- )
1489
- response = extract_xml(response_llm, "quarantine_errors")
1490
- error_message += "\n" + response
1491
- click.echo(response)
1479
+ try:
1480
+ llm = LLM(user_token=user_token, host=config.get_client().host)
1481
+ ds_filenames = project.get_datasource_files()
1482
+ datasource_definition = next(
1483
+ (Path(f).read_text() for f in ds_filenames if f.endswith(f"{datasource_name}.datasource")), ""
1484
+ )
1485
+ response_llm = llm.ask(
1486
+ system_prompt=quarantine_prompt(datasource_definition),
1487
+ prompt=f"The quarantine errors are:\n{json.dumps(quarantine_data)}",
1488
+ feature="tb_datasource_append_analyze_quarantine",
1489
+ )
1490
+ response = extract_xml(response_llm, "quarantine_errors")
1491
+ error_message += "\n" + response
1492
+ click.echo(response)
1493
+ except Exception:
1494
+ click.echo(FeedbackManager.error(message="There was an error analyzing the quarantine errors"))
1492
1495
  else:
1493
1496
  echo_safe_humanfriendly_tables_format_smart_table(
1494
1497
  data=[d.values() for d in res["data"]], column_names=res["data"][0].keys()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 4.5.9.dev0
3
+ Version: 4.5.10.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -52,6 +52,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
52
  Changelog
53
53
  ----------
54
54
 
55
+ 4.5.9
56
+ *******
57
+
58
+ - `Fixed` Manage correctly LLM errors when analyzing quarantine errors.
59
+
55
60
  4.5.8
56
61
  *******
57
62
 
@@ -17,7 +17,7 @@ tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1w
17
17
  tinybird/datafile/parse_connection.py,sha256=GxmGp_XnWbDZPDbh_PBxitlIMqZRYfDwxMBw-JQBp1g,1890
18
18
  tinybird/datafile/parse_datasource.py,sha256=yd58HrUF4yNJXLn6OsvKGpZJpvrcjLGAeJG1lgBe_zk,1891
19
19
  tinybird/datafile/parse_pipe.py,sha256=-9bbgVuiWRyDYydrLVflDBt8GstZotMy6dklsrc6MUY,3859
20
- tinybird/tb/__cli__.py,sha256=TpV3a77E9JSPAoQ6ITcxs7W002tp0EoZzxNaR552Fig,245
20
+ tinybird/tb/__cli__.py,sha256=Rbby-Jw_vKgXgOm5ckVwKMg3BgXjQnCpcq2uM9zgUxU,246
21
21
  tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
22
22
  tinybird/tb/cli.py,sha256=IjiGfNIpxSxi1odK1kMj9s8lEhx3sAUgGA263XdmyR0,1119
23
23
  tinybird/tb/client.py,sha256=RM8VQwPZFonfvejuTf3oT09XbJmq7pD5VLzFt4zoBGM,53910
@@ -34,7 +34,7 @@ tinybird/tb/modules/connection_kafka.py,sha256=Ay9VqRUehjq_5bSFCNXfYrSo-wsa2FrVp
34
34
  tinybird/tb/modules/connection_s3.py,sha256=-Sj9d7xAJXbpr8JHioCqrO2hneJ1spoBE4QpYEfiyS8,16565
35
35
  tinybird/tb/modules/copy.py,sha256=Apzjxiyinp6KmgamypPKEe3BAnpxG7MwYcSYkHiG8sA,6033
36
36
  tinybird/tb/modules/create.py,sha256=UsHCgWxkiz-cDBCmXp-G7zyQGHvu1r6X-ywPRz_jxgo,21231
37
- tinybird/tb/modules/datasource.py,sha256=rqhfg17vnivTLnbYxy3b0j3rrT4xOkDFGgN14mTaVGg,64256
37
+ tinybird/tb/modules/datasource.py,sha256=52P3qz4Su9OCNOyXy5JnbkN3miMgxsfJ5AdJiJ9nFAI,64455
38
38
  tinybird/tb/modules/deployment.py,sha256=TNDlvaYmk-zouvaAdMXlyFPbgbnMKQOt76xpZBggJI0,21184
39
39
  tinybird/tb/modules/deployment_common.py,sha256=fLPWNNs8ZwSkWHJjLeqQUqTbKqnnhW1y8yKffBdDCo0,31948
40
40
  tinybird/tb/modules/deprecations.py,sha256=XXekrzPO9v12F1ToQDUGzLYJJ2wrEUlGKOkLCSdfHiM,4935
@@ -97,8 +97,8 @@ tinybird/tb_cli_modules/config.py,sha256=0kFDmsDcjKon32rgFGMHHKSbv4j5dOrXtVOlyuA
97
97
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
98
98
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
99
99
  tinybird/tb_cli_modules/telemetry.py,sha256=W098H6jmS4kpE7hN3tadaREBTf7oMocel-lkKWN0pU8,10466
100
- tinybird-4.5.9.dev0.dist-info/METADATA,sha256=jiHxslzaAZNmVBsKTnJ5x2NPbYeVMd2SVpZYRKcEPhI,10686
101
- tinybird-4.5.9.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
102
- tinybird-4.5.9.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
- tinybird-4.5.9.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
104
- tinybird-4.5.9.dev0.dist-info/RECORD,,
100
+ tinybird-4.5.10.dev0.dist-info/METADATA,sha256=F8x26ajbHWZZGE-4ExSH1M6ZZU1imDwmPTaYwuHhY1o,10775
101
+ tinybird-4.5.10.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
102
+ tinybird-4.5.10.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
+ tinybird-4.5.10.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
104
+ tinybird-4.5.10.dev0.dist-info/RECORD,,