You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently is no way to programmatically inspect which foundation models my account has been granted access to. Something should be added to boto3 to allow this information to be retrieved by external APIs.
Use Case
Example of when this feature would be useful:
I have been granted access to a subset of models on Bedrock. I also have a front end application through which users can interact with these models. So that my users know which models they can use, the front end displays the list of models. But this list grows over time as I request access to more and more models.
Currently, because this list cannot be fetched programmatically, I am forced to hardcode it inside my application's source code. But this increases the amount of code I must manually maintain. Alternatively, I could iterative over the list of all available models (so not just the subset I have access to), submit a request to each, and infer that I have access iff the request returns successfully. But this means starting my application would actually cost me extra money.
So neither of those solutions is ideal. Much better would be a dedicated, purpose-built method for programmatically determining which models I have access to, then showing this list to users.
Proposed Solution
The closest existing tool seems to be boto3.client('bedrock').list_foundation_models(). But this returns everything available on Bedrock, not just the subset of things which currently have access to. The returned models are structured as follows:
IMHO, the cheapest/most extensible solution would be to add a new field into each entry, e.g.,
{
"modelArn": "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-tg1-large",
"modelId": "amazon.titan-tg1-large",
"modelName": "Titan Text Large",
"providerName": "Amazon",
"inputModalities": [
"TEXT"
],
"outputModalities": [
"TEXT"
],
"responseStreamingSupported": true,
"customizationsSupported": [],
"inferenceTypesSupported": [
"ON_DEMAND"
],
"modelLifecycle": {
"status": "ACTIVE"
},
"accessGranted": true# <---- I PROPOSE ADDING A FIELD LIKE THIS
}
That way, one could simply traverse the dictionary and filter where "accessGranted" is True. This would probably be much easier and more widely useful than introducing a dedicated method like boto3.client('bedrock').list_accessed_models().
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
SDK version used
1.34.159
Environment details (OS name and version, etc.)
MacOS Sonoma 14.5
The text was updated successfully, but these errors were encountered:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
entitlementAvailability is what you are looking for the. The console list all the foundation models (like list-foundation-models available in boto3 and the aws-cli). Then it run each of them through https://bedrock.eu-central-1.amazonaws.com/foundation-model-availability/ to check entitlementStatus (This solution doesn't really seems effective at the scale like AWS where a filter on the list-foundation-models would be much more effective)
Describe the feature
Currently is no way to programmatically inspect which foundation models my account has been granted access to. Something should be added to
boto3
to allow this information to be retrieved by external APIs.Use Case
Example of when this feature would be useful:
I have been granted access to a subset of models on Bedrock. I also have a front end application through which users can interact with these models. So that my users know which models they can use, the front end displays the list of models. But this list grows over time as I request access to more and more models.
Currently, because this list cannot be fetched programmatically, I am forced to hardcode it inside my application's source code. But this increases the amount of code I must manually maintain. Alternatively, I could iterative over the list of all available models (so not just the subset I have access to), submit a request to each, and infer that I have access iff the request returns successfully. But this means starting my application would actually cost me extra money.
So neither of those solutions is ideal. Much better would be a dedicated, purpose-built method for programmatically determining which models I have access to, then showing this list to users.
Proposed Solution
The closest existing tool seems to be
boto3.client('bedrock').list_foundation_models()
. But this returns everything available on Bedrock, not just the subset of things which currently have access to. The returned models are structured as follows:IMHO, the cheapest/most extensible solution would be to add a new field into each entry, e.g.,
That way, one could simply traverse the dictionary and filter where
"accessGranted"
isTrue
. This would probably be much easier and more widely useful than introducing a dedicated method likeboto3.client('bedrock').list_accessed_models()
.Other Information
No response
Acknowledgements
SDK version used
1.34.159
Environment details (OS name and version, etc.)
MacOS Sonoma 14.5
The text was updated successfully, but these errors were encountered: