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
I was trying out Bedrock models on Portkey , however I keep getting the below error: PermissionDeniedError: Error code: 403 - {'error': {'message': 'bedrock error: The security token included in the request is invalid.', 'type': None, 'param': None, 'code': None}, 'provider': 'bedrock'}
I have verified the credentials and they are working fine without port key
What Should Have Happened?
This error should not be comming and instead the llm request must go on with status code 200
Relevant Code Snippet
config = {
"strategy": {
"mode": "loadbalance"
},
"targets": [{
"virtual_key": os.environ.get("bedrock_virtual_key"),
"override_params": {"model": "meta.llama3-70b-instruct-v1:0",}
}]
}
portkey_headers = createHeaders(
api_key=os.environ.get("api_key"),
config=config
)
llm = ChatOpenAI(api_key="X", base_url=PORTKEY_GATEWAY_URL, default_headers=portkey_headers)
llm.invoke("What is the meaning of life, universe and everything?")
This is throwing error: PermissionDeniedError: Error code: 403 - {'error': {'message': 'bedrock error: The security token included in the request is invalid.', 'type': None, 'param': None, 'code': None}, 'provider': 'bedrock'}
Your Twitter/LinkedIn
@kumaria3001
The text was updated successfully, but these errors were encountered:
Hey @Chaitanya-akaike! Few users have faced this in the past because they interchanged access key ID and secret key while creating a virtual key. Can you please double check if thats not the case here?
What Happened?
I was trying out Bedrock models on Portkey , however I keep getting the below error:
PermissionDeniedError: Error code: 403 - {'error': {'message': 'bedrock error: The security token included in the request is invalid.', 'type': None, 'param': None, 'code': None}, 'provider': 'bedrock'}
I have verified the credentials and they are working fine without port key
What Should Have Happened?
This error should not be comming and instead the llm request must go on with status code 200
Relevant Code Snippet
This is throwing error:
PermissionDeniedError: Error code: 403 - {'error': {'message': 'bedrock error: The security token included in the request is invalid.', 'type': None, 'param': None, 'code': None}, 'provider': 'bedrock'}
Your Twitter/LinkedIn
@kumaria3001
The text was updated successfully, but these errors were encountered: