File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/inference/src/lib Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,16 @@ function normalizeInferenceProviderMapping(
18
18
modelId : ModelId ,
19
19
inferenceProviderMapping ?:
20
20
| InferenceProviderMappingEntry [ ]
21
- | Record < string , { providerId : string ; status : "live" | "staging" ; task : WidgetType } >
21
+ | Record <
22
+ string ,
23
+ {
24
+ providerId : string ;
25
+ status : "live" | "staging" ;
26
+ task : WidgetType ;
27
+ adapter ?: string ;
28
+ adapterWeightsPath ?: string ;
29
+ }
30
+ >
22
31
) : InferenceProviderMappingEntry [ ] {
23
32
if ( ! inferenceProviderMapping ) {
24
33
return [ ] ;
@@ -36,6 +45,8 @@ function normalizeInferenceProviderMapping(
36
45
providerId : mapping . providerId ,
37
46
status : mapping . status ,
38
47
task : mapping . task ,
48
+ adapter : mapping . adapter ,
49
+ adapterWeightsPath : mapping . adapterWeightsPath ,
39
50
} ) ) ;
40
51
}
41
52
You can’t perform that action at this time.
0 commit comments