File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const AI21EmbedConfig: ProviderConfig = {
11
11
required : true ,
12
12
transform : ( params : EmbedParams ) : string [ ] => {
13
13
if ( Array . isArray ( params . input ) ) {
14
- return params . input ;
14
+ return params . input as string [ ] ;
15
15
} else {
16
16
return [ params . input ] ;
17
17
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const CohereEmbedConfig: ProviderConfig = {
9
9
required : true ,
10
10
transform : ( params : EmbedParams ) : string [ ] => {
11
11
if ( Array . isArray ( params . input ) ) {
12
- return params . input ;
12
+ return params . input as string [ ] ;
13
13
} else {
14
14
return [ params . input ] ;
15
15
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const WorkersAiEmbedConfig: ProviderConfig = {
13
13
required : true ,
14
14
transform : ( params : EmbedParams ) : string [ ] => {
15
15
if ( Array . isArray ( params . input ) ) {
16
- return params . input ;
16
+ return params . input as string [ ] ;
17
17
} else {
18
18
return [ params . input ] ;
19
19
}
You can’t perform that action at this time.
0 commit comments