- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
Hello.
I'm not very familiar with Go, but based on the documentation below, it looks like "bedrockruntime" can be used, so I thought I could use it just by sending a message API request.
https://docs.aws.amazon.com/code-library/latest/ug/go_2_bedrock-runtime_code_examples.html
https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/gov2/bedrock-runtime/hello/hello.go#L4
https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/bedrockruntime#Client.InvokeModel
Please check the contents of the following document for message API requests.
https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-messages.html
This is a Japanese blog, but there is a blog that uses Amazon Bedrock's Claude v3 with Go SDK.
https://qiita.com/orc_jj/items/4877cb48b6e966c89788
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
Thank you for the response Riku,
Problem here is messages API is not yet supported by Golang SDK unlike JS/Python SDK. The
InvokeInference
API doesn't support claude v3 model unlike claude v2 and v2.1.The messages API from anthropic API is available but it requires Anthropic's API_KEY and has separate billing on it, as I want to use my AWS creds for inferance, I was waiting for native SDK support in Golang.