trustgraph-vertexai 0.20.1__tar.gz → 0.20.2__tar.gz

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 trustgraph-vertexai might be problematic. Click here for more details.

@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-vertexai
3
- Version: 0.20.1
3
+ Version: 0.20.2
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Home-page: https://github.com/trustgraph-ai/trustgraph
6
- Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.1.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.2.tar.gz
7
7
  Author: trustgraph.ai
8
8
  Author-email: security@trustgraph.ai
9
9
  Classifier: Programming Language :: Python :: 3
@@ -178,25 +178,15 @@ class Processor(ConsumerProducer):
178
178
 
179
179
  except google.api_core.exceptions.ResourceExhausted as e:
180
180
 
181
- print("Send rate limit response...", flush=True)
181
+ print("Hit rate limit:", e, flush=True)
182
182
 
183
- r = TextCompletionResponse(
184
- error=Error(
185
- type = "rate-limit",
186
- message = str(e),
187
- ),
188
- response=None,
189
- in_token=None,
190
- out_token=None,
191
- model=None,
192
- )
193
-
194
- self.producer.send(r, properties={"id": id})
195
-
196
- self.consumer.acknowledge(msg)
183
+ # Leave rate limit retries to the base handler
184
+ raise TooManyRequests()
197
185
 
198
186
  except Exception as e:
199
187
 
188
+ # Apart from rate limits, treat all exceptions as unrecoverable
189
+
200
190
  print(f"Exception: {e}")
201
191
 
202
192
  print("Send error response...", flush=True)
@@ -0,0 +1 @@
1
+ __version__ = "0.20.2"
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-vertexai
3
- Version: 0.20.1
3
+ Version: 0.20.2
4
4
  Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
5
5
  Home-page: https://github.com/trustgraph-ai/trustgraph
6
- Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.1.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.2.tar.gz
7
7
  Author: trustgraph.ai
8
8
  Author-email: security@trustgraph.ai
9
9
  Classifier: Programming Language :: Python :: 3
@@ -1 +0,0 @@
1
- __version__ = "0.20.1"