This commit is contained in:
ishaan-jaff 2023-09-14 14:23:03 -07:00
parent b290577748
commit 916ce6dfd4

View file

@ -34,7 +34,7 @@ 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 client fails litellm
If creating a boto3 bedrock client fails litellm will retry pip installing boto3 on your system
```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