Skip to content

Commit b675492

Browse files
mirodrr2mirodrr
andauthored
fix most bedrock embeddings models (#105)
Co-authored-by: michael rodriguez <[email protected]>
1 parent 6a62bc9 commit b675492

17 files changed

+42
-1
lines changed

config/default-config-ap-northeast-1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ model_list:
77
- model_name: amazon.titan-embed-text-v1
88
litellm_params:
99
model: bedrock/amazon.titan-embed-text-v1
10+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1011

1112
- model_name: amazon.titan-embed-text-v2:0
1213
litellm_params:
1314
model: bedrock/amazon.titan-embed-text-v2:0
15+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1416

1517
- model_name: amazon.rerank-v1:0
1618
litellm_params:
@@ -27,6 +29,7 @@ model_list:
2729
- model_name: cohere.embed-english-v3
2830
litellm_params:
2931
model: bedrock/cohere.embed-english-v3
32+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3033

3134
- model_name: cohere.embed-multilingual-v3
3235
litellm_params:

config/default-config-ap-northeast-2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ model_list:
33
- model_name: amazon.titan-embed-text-v2:0
44
litellm_params:
55
model: bedrock/amazon.titan-embed-text-v2:0
6+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
67

78
- model_name: anthropic.claude-3-5-sonnet-20240620-v1:0
89
litellm_params:

config/default-config-ap-south-1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ model_list:
1111
- model_name: amazon.titan-embed-image-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-image-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-image-generator-v1
1617
litellm_params:
@@ -19,6 +20,7 @@ model_list:
1920
- model_name: amazon.titan-embed-text-v2:0
2021
litellm_params:
2122
model: bedrock/amazon.titan-embed-text-v2:0
23+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
2224

2325
- model_name: anthropic.claude-3-sonnet-20240229-v1:0
2426
litellm_params:
@@ -31,6 +33,7 @@ model_list:
3133
- model_name: cohere.embed-english-v3
3234
litellm_params:
3335
model: bedrock/cohere.embed-english-v3
36+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3437

3538
- model_name: cohere.embed-multilingual-v3
3639
litellm_params:

config/default-config-ap-southeast-1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ model_list:
1111
- model_name: cohere.embed-english-v3
1212
litellm_params:
1313
model: bedrock/cohere.embed-english-v3
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: cohere.embed-multilingual-v3
1617
litellm_params:

config/default-config-ap-southeast-2.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ model_list:
1111
- model_name: amazon.titan-embed-image-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-image-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-embed-text-v2:0
1617
litellm_params:
1718
model: bedrock/amazon.titan-embed-text-v2:0
19+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1820

1921
- model_name: anthropic.claude-3-sonnet-20240229-v1:0
2022
litellm_params:
@@ -31,6 +33,7 @@ model_list:
3133
- model_name: cohere.embed-english-v3
3234
litellm_params:
3335
model: bedrock/cohere.embed-english-v3
36+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3437

3538
- model_name: cohere.embed-multilingual-v3
3639
litellm_params:

config/default-config-ca-central-1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ model_list:
1111
- model_name: amazon.titan-embed-image-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-image-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-embed-text-v2:0
1617
litellm_params:
1718
model: bedrock/amazon.titan-embed-text-v2:0
19+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1820

1921
- model_name: amazon.rerank-v1:0
2022
litellm_params:
@@ -31,6 +33,7 @@ model_list:
3133
- model_name: cohere.embed-english-v3
3234
litellm_params:
3335
model: bedrock/cohere.embed-english-v3
36+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3437

3538
- model_name: cohere.embed-multilingual-v3
3639
litellm_params:

config/default-config-eu-central-1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ model_list:
1111
- model_name: amazon.titan-embed-text-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-text-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-embed-image-v1
1617
litellm_params:
1718
model: bedrock/amazon.titan-embed-image-v1
19+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1820

1921
- model_name: amazon.titan-embed-text-v2:0
2022
litellm_params:
2123
model: bedrock/amazon.titan-embed-text-v2:0
24+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
2225

2326
- model_name: amazon.rerank-v1:0
2427
litellm_params:
@@ -35,6 +38,7 @@ model_list:
3538
- model_name: cohere.embed-english-v3
3639
litellm_params:
3740
model: bedrock/cohere.embed-english-v3
41+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3842

3943
- model_name: cohere.embed-multilingual-v3
4044
litellm_params:

config/default-config-eu-north-1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ model_list:
33
- model_name: amazon.titan-embed-text-v2:0
44
litellm_params:
55
model: bedrock/amazon.titan-embed-text-v2:0
6+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
67

config/default-config-eu-west-1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ model_list:
1111
- model_name: amazon.titan-embed-image-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-image-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-embed-text-v2:0
1617
litellm_params:
1718
model: bedrock/amazon.titan-embed-text-v2:0
19+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1820

1921
- model_name: amazon.titan-image-generator-v1
2022
litellm_params:
@@ -27,6 +29,7 @@ model_list:
2729
- model_name: cohere.embed-english-v3
2830
litellm_params:
2931
model: bedrock/cohere.embed-english-v3
32+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3033

3134
- model_name: cohere.embed-multilingual-v3
3235
litellm_params:

config/default-config-eu-west-2.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ model_list:
1111
- model_name: amazon.titan-embed-image-v1
1212
litellm_params:
1313
model: bedrock/amazon.titan-embed-image-v1
14+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
1415

1516
- model_name: amazon.titan-image-generator-v1
1617
litellm_params:
@@ -19,6 +20,7 @@ model_list:
1920
- model_name: amazon.titan-embed-text-v2:0
2021
litellm_params:
2122
model: bedrock/amazon.titan-embed-text-v2:0
23+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
2224

2325
- model_name: anthropic.claude-3-sonnet-20240229-v1:0
2426
litellm_params:
@@ -31,6 +33,7 @@ model_list:
3133
- model_name: cohere.embed-english-v3
3234
litellm_params:
3335
model: bedrock/cohere.embed-english-v3
36+
drop_params: true #Needed to avoid errors when encoding_format is passed in by openai python client
3437

3538
- model_name: cohere.embed-multilingual-v3
3639
litellm_params:

0 commit comments

Comments
 (0)