mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-15 12:27:01 +00:00
docs
This commit is contained in:
@@ -34,8 +34,11 @@ Here's an example of using a bedrock model with LiteLLM
|
||||
| AI21 J2-Mid | `completion(model='bedrock/ai21.j2-mid', messages=messages)` | `os.environ['AWS_ACCESS_KEY_ID']`, `os.environ['AWS_SECRET_ACCESS_KEY']`, `os.environ['AWS_REGION_NAME']` |
|
||||
|
||||
### Troubleshooting
|
||||
If creating a boto3 bedrock client fails litellm will retry pip installing boto3 on your system
|
||||
If creating a boto3 bedrock client fails with `Unknown service: 'bedrock'`
|
||||
Try re installing boto3 using the following commands
|
||||
```shell
|
||||
pip install https://github.com/BerriAI/litellm/raw/main/cookbook/bedrock_resources/boto3-1.28.21-py3-none-any.whl
|
||||
pip install https://github.com/BerriAI/litellm/raw/main/cookbook/bedrock_resources/botocore-1.31.21-py3-none-any.whl
|
||||
```
|
||||
```
|
||||
|
||||
See Page 26 on [Amazon Bedrock User Guide](https://d2eo22ngex1n9g.cloudfront.net/Documentation/BedrockUserGuide.pdf)
|
||||
Reference in New Issue
Block a user