agenta 0.12.5__py3-none-any.whl → 0.12.6__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 agenta might be problematic. Click here for more details.

agenta/cli/main.py CHANGED
@@ -153,18 +153,21 @@ def init(app_name: str, backend_host: str):
153
153
  try:
154
154
  key_prefix = api_key.split(".")[0]
155
155
  client.validate_api_key(key_prefix=key_prefix)
156
-
157
- # Make request to fetch user organizations after api key validation
156
+ except Exception as ex:
157
+ click.echo(
158
+ click.style(
159
+ f"Error: Unable to validate API key.\nError: {ex}", fg="red"
160
+ )
161
+ )
162
+ sys.exit(1)
163
+ # Make request to fetch user organizations after api key validation
164
+ try:
158
165
  organizations = client.list_organizations()
159
166
  if len(organizations) >= 1:
160
167
  user_organizations = organizations
161
168
  except Exception as ex:
162
- if ex.status_code == 401:
163
- click.echo(click.style("Error: Invalid API key", fg="red"))
164
- sys.exit(1)
165
- else:
166
- click.echo(click.style(f"Error: {ex}", fg="red"))
167
- sys.exit(1)
169
+ click.echo(click.style(f"Error: {ex}", fg="red"))
170
+ sys.exit(1)
168
171
 
169
172
  filtered_org = None
170
173
  if where_question == "On agenta cloud":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.12.5
3
+ Version: 0.12.6
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Home-page: https://agenta.ai
6
6
  Keywords: LLMOps,LLM,evaluation,prompt engineering
@@ -1,7 +1,7 @@
1
1
  agenta/__init__.py,sha256=Sg_4PW8MM-r9p96FeqTdu1h7fcQzN4nF7KPuQD7lgIc,493
2
2
  agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxugwd8,474
3
3
  agenta/cli/helper.py,sha256=X_0GtjugLQiM_f53_l3AF3uPS8if96ejTh2nThYqLuE,6199
4
- agenta/cli/main.py,sha256=kSWLxVnjvpd_bqT-vMMHFRXRc53zUS_k5pLcvnVxaF4,9409
4
+ agenta/cli/main.py,sha256=jeTI0U1xeRwFv3QkJRwOXWVK13V9t3JEoApAk5VbAtA,9487
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
6
  agenta/cli/variant_commands.py,sha256=wJCfTp1uNQwSadg4rraxZF5NUVfpfg_0RAK76qD5xDo,16858
7
7
  agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
@@ -108,7 +108,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
108
108
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
109
109
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
110
110
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
111
- agenta-0.12.5.dist-info/METADATA,sha256=YIhDd9UjBwKXoR9RRoSFnHt3cJxXZffhx22VZ93BGX8,27336
112
- agenta-0.12.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- agenta-0.12.5.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
- agenta-0.12.5.dist-info/RECORD,,
111
+ agenta-0.12.6.dist-info/METADATA,sha256=Qj51sEqvl9Qg2gSnHwGR1hyn6rzxRqfaF9HFNMbdrq8,27336
112
+ agenta-0.12.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ agenta-0.12.6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
114
+ agenta-0.12.6.dist-info/RECORD,,