Skip to content

Commit

Permalink
fix bedrock url to reflect region parameter
Browse files Browse the repository at this point in the history
Signed-off-by: tkykenmt <[email protected]>
  • Loading branch information
tkykenmt committed Dec 3, 2024
1 parent af61b9d commit ecef600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ POST /_plugins/_ml/connectors/_create
{
"action_type": "predict",
"method": "POST",
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/amazon.rerank-v1:0/invoke",
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/amazon.rerank-v1:0/invoke",
"headers": {
"x-amz-content-sha256": "required",
"content-type": "application/json"
Expand Down Expand Up @@ -159,7 +159,7 @@ POST /_plugins/_ml/connectors/_create
{
"action_type": "predict",
"method": "POST",
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/amazon.rerank-v1:0/invoke",
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/amazon.rerank-v1:0/invoke",
"headers": {
"x-amz-content-sha256": "required",
"content-type": "application/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ POST /_plugins/_ml/connectors/_create
{
"action_type": "predict",
"method": "POST",
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/cohere.rerank-v3-5:0/invoke",
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/cohere.rerank-v3-5:0/invoke",
"headers": {
"x-amz-content-sha256": "required",
"content-type": "application/json"
Expand Down Expand Up @@ -162,7 +162,7 @@ POST /_plugins/_ml/connectors/_create
{
"action_type": "predict",
"method": "POST",
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/cohere.rerank-v3-5:0/invoke",
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/cohere.rerank-v3-5:0/invoke",
"headers": {
"x-amz-content-sha256": "required",
"content-type": "application/json"
Expand Down

0 comments on commit ecef600

Please sign in to comment.