trustgraph-bedrock 0.20.8__tar.gz → 0.20.10__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.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-bedrock
3
- Version: 0.20.8
3
+ Version: 0.20.10
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.8.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.10.tar.gz
7
7
  Author: trustgraph.ai
8
8
  Author-email: security@trustgraph.ai
9
9
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1 @@
1
+ __version__ = "0.20.10"
@@ -258,27 +258,17 @@ class Processor(ConsumerProducer):
258
258
 
259
259
  print("Done.", flush=True)
260
260
 
261
- except self.bedrock.exceptions.ThrottlingException:
261
+ except self.bedrock.exceptions.ThrottlingException as e:
262
262
 
263
- print("Send rate limit response...", flush=True)
263
+ print("Hit rate limit:", e, flush=True)
264
264
 
265
- r = TextCompletionResponse(
266
- error=Error(
267
- type = "rate-limit",
268
- message = str(e),
269
- ),
270
- response=None,
271
- in_token=None,
272
- out_token=None,
273
- model=None,
274
- )
275
-
276
- self.producer.send(r, properties={"id": id})
277
-
278
- self.consumer.acknowledge(msg)
265
+ # Leave rate limit retries to the base handler
266
+ raise TooManyRequests()
279
267
 
280
268
  except Exception as e:
281
269
 
270
+ # Apart from rate limits, treat all exceptions as unrecoverable
271
+
282
272
  print(type(e))
283
273
  print(f"Exception: {e}")
284
274
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-bedrock
3
- Version: 0.20.8
3
+ Version: 0.20.10
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.8.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.10.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.8"