This PR introduces a new endpoint, rerank, to the AWS utility functions. The changes are as follows:
The nonStreamedResponseParser object in src/aws-utils.ts now includes a new property, "rerank": serializers.RerankResponse,.
The AwsEndpoint type in src/aws-utils.ts has been updated to include the new rerank endpoint.
The models object in src/test/bedrock-tests.test.ts has been extended with a new property, rerank: "cohere.rerank-v1", for both the bedrock and sagemaker platforms.
The getEndpointFromUrl function in src/aws-utils.ts has been removed.
Fixes https://github.com/cohere-ai/cohere-typescript/issues/200
This PR introduces a new endpoint,
rerank
, to the AWS utility functions. The changes are as follows:nonStreamedResponseParser
object insrc/aws-utils.ts
now includes a new property,"rerank": serializers.RerankResponse,
.AwsEndpoint
type insrc/aws-utils.ts
has been updated to include the newrerank
endpoint.models
object insrc/test/bedrock-tests.test.ts
has been extended with a new property,rerank: "cohere.rerank-v1",
for both thebedrock
andsagemaker
platforms.getEndpointFromUrl
function insrc/aws-utils.ts
has been removed.