Use secrets manager for api key
This commit is contained in:
1 parent
74ca3b938e
commit
c39f6bc942
4 files changed
+304
-11
No files matched your search
@@ -105,7 +105,7 @@ def list_bedrock_models() -> dict:
|
||||
status = model['modelLifecycle'].get('status', 'ACTIVE')
|
||||
|
||||
# currently, use this to filter out rerank models and legacy models
|
||||
if not stream_supported or status != "ACTIVE":
|
||||
if not stream_supported or status not in ["ACTIVE", "LEGACY"]:
|
||||
continue
|
||||
|
||||
inference_types = model.get('inferenceTypesSupported', [])
|
||||
|
||||
Reference in new issue
Block a user