mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
refactor(bedrock_httpx): change botocore reference
This commit is contained in:
parent
2f130b39c0
commit
928efe2d87
1 changed files with 3 additions and 2 deletions
|
|
@ -45,7 +45,6 @@ import httpx # type: ignore
|
|||
from .bedrock import BedrockError, convert_messages_to_prompt, ModelResponseIterator
|
||||
from litellm.types.llms.bedrock import *
|
||||
import urllib.parse
|
||||
import botocore
|
||||
|
||||
|
||||
class AmazonCohereChatConfig:
|
||||
|
|
@ -264,7 +263,9 @@ class BedrockLLM(BaseLLM):
|
|||
|
||||
# Extract the credentials from the response and convert to Session Credentials
|
||||
sts_credentials = sts_response["Credentials"]
|
||||
credentials = botocore.credentials.Credentials(
|
||||
from botocore.credentials import Credentials
|
||||
|
||||
credentials = Credentials(
|
||||
access_key=sts_credentials["AccessKeyId"],
|
||||
secret_key=sts_credentials["SecretAccessKey"],
|
||||
token=sts_credentials["SessionToken"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue