mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(utils.py): allow dynamically setting boto3 init and switching between bedrock and openai
This commit is contained in:
parent
9b38ce8447
commit
7ed4d9b4d1
2 changed files with 14 additions and 0 deletions
|
@ -3197,6 +3197,10 @@ def get_optional_params(
|
|||
passed_params = locals()
|
||||
special_params = passed_params.pop("kwargs")
|
||||
for k, v in special_params.items():
|
||||
if k.startswith("aws_") and (
|
||||
custom_llm_provider != "bedrock" or custom_llm_provider != "sagemaker"
|
||||
): # allow dynamically setting boto3 init logic
|
||||
continue
|
||||
passed_params[k] = v
|
||||
default_params = {
|
||||
"functions": None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue