mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
(docs) bedrock
This commit is contained in:
parent
acef90b923
commit
a67a531507
1 changed files with 15 additions and 0 deletions
|
|
@ -34,6 +34,21 @@ response = completion(
|
|||
)
|
||||
```
|
||||
|
||||
### Pass auth params in completion()
|
||||
If you don't want to set env variables, pass auth params to completion
|
||||
```python
|
||||
import os
|
||||
from litellm import completion
|
||||
|
||||
response = completion(
|
||||
model="bedrock/anthropic.claude-instant-v1",
|
||||
messages=[{ "content": "Hello, how are you?","role": "user"}],
|
||||
aws_access_key_id="",
|
||||
aws_secret_access_key="",
|
||||
aws_region_name="",
|
||||
)
|
||||
```
|
||||
|
||||
## Supported AWS Bedrock Models
|
||||
Here's an example of using a bedrock model with LiteLLM
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue