Closed psanford closed 9 months ago
Many models in amazon-bedrock do not support context-aware conversations by appending an array of past messages. Different models have different request bodies, which is difficult to implement.
So I will not support amazon bedrock models.
But you can use amazon-bedrock with litellm.
pipx install litellm
)
$ export AWS_ACCESS_KEY_ID=
$ export AWS_REGION_NAME=
$ export AWS_SECRET_ACCESS_KEY=
$ litellm --model bedrock/anthropic.claude-v2
- Configure aichat to use it (note the ollama/ prefix on the model name):
```yaml
- type: openai-compatible
name: calude
api_base: http://localhost:8000/v1
api_key: xxx
models:
- name: bedrock/anthropic.claude-v2
Please confirm whether the following requirements are met:
Please provide the following documents or links:
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html