trustgraph-bedrock 0.20.8__tar.gz → 0.20.9__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.
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/PKG-INFO +2 -2
- trustgraph-bedrock-0.20.9/trustgraph/bedrock_version.py +1 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph/model/text_completion/bedrock/llm.py +6 -16
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/PKG-INFO +2 -2
- trustgraph-bedrock-0.20.8/trustgraph/bedrock_version.py +0 -1
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/README.md +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/scripts/text-completion-bedrock +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/setup.cfg +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/setup.py +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph/model/text_completion/bedrock/__init__.py +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph/model/text_completion/bedrock/__main__.py +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/SOURCES.txt +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/dependency_links.txt +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/requires.txt +0 -0
- {trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-bedrock
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.9
|
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.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.9.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.9"
|
@@ -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("
|
263
|
+
print("Hit rate limit:", e, flush=True)
|
264
264
|
|
265
|
-
|
266
|
-
|
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
|
|
{trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/PKG-INFO
RENAMED
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-bedrock
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.9
|
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.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.9.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"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/requires.txt
RENAMED
File without changes
|
{trustgraph-bedrock-0.20.8 → trustgraph-bedrock-0.20.9}/trustgraph_bedrock.egg-info/top_level.txt
RENAMED
File without changes
|