Skip to content

Cohere on Bedrock has been a failure #186

@mutazmq1

Description

@mutazmq1

Try this and it doesn't work:

import cohere_aws
import boto3

co = cohere_aws.Client(mode=cohere_aws.Mode.BEDROCK)
message = "Write a LinkedIn post about starting a career in tech:"

response = co.chat(message=message, model_id="cohere.command-r-plus-v1:0", stream=False)

print(response)

Try summarize from cohere_aws. Also doesn't work.

Try BedrockLLM from Langchain, Cohere also doesn't work.

All I need is a code snippet that allows me to use Cohere "cohere.command-r-plus-v1:0" on Bedrock us-east-1 to summarise text. And that seems impossible so far!! I just want to call Bedrock directly without creating an end point.

Appreciate your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions