File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 54
54
"ai-lab.inferenceRuntime" : {
55
55
"type" : " string" ,
56
56
"enum" : [
57
+ " all" ,
57
58
" llama-cpp" ,
58
59
" whisper-cpp" ,
59
60
" none"
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class ConfigurationRegistry extends Publisher<ExtensionConfiguration> imp
55
55
modelsPath : this . getModelsPath ( ) ,
56
56
experimentalGPU : this . #configuration. get < boolean > ( 'experimentalGPU' ) ?? false ,
57
57
apiPort : this . #configuration. get < number > ( 'apiPort' ) ?? API_PORT_DEFAULT ,
58
- inferenceRuntime : this . #configuration. get < string > ( 'inferenceRuntime' ) ?? 'none ' ,
58
+ inferenceRuntime : this . #configuration. get < string > ( 'inferenceRuntime' ) ?? 'all ' ,
59
59
experimentalTuning : this . #configuration. get < boolean > ( 'experimentalTuning' ) ?? false ,
60
60
modelUploadDisabled : this . #configuration. get < boolean > ( 'modelUploadDisabled' ) ?? false ,
61
61
showGPUPromotion : this . #configuration. get < boolean > ( 'showGPUPromotion' ) ?? true ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ onMount(() => {
59
59
60
60
function filterModel(model : ModelInfo ): boolean {
61
61
// If the defaultRuntime is undefined we should not filter any model
62
- if (! defaultRuntime ) return true ;
62
+ if (! defaultRuntime || defaultRuntime === ' all ' ) return true ;
63
63
64
64
return model .backend === defaultRuntime ;
65
65
}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ let defaultRuntime: string | undefined = $state();
108
108
onMount (() => {
109
109
const inferenceRuntime = $configuration ?.inferenceRuntime ;
110
110
if (inferenceRuntime ) defaultRuntime = inferenceRuntime ;
111
- onFilterChange (' tools' , defaultRuntime ?? ' all ' );
111
+ if ( inferenceRuntime !== ' all ' ) onFilterChange (' tools' , defaultRuntime ?? ' ' );
112
112
});
113
113
</script >
114
114
@@ -144,7 +144,7 @@ onMount(() => {
144
144
<label for ={filterComponent .key } class ="block mb-2 text-sm font-medium" >{filterComponent .label }</label >
145
145
<Dropdown
146
146
id ={filterComponent .key }
147
- value ={filterComponent .key === ' tools' ? defaultRuntime : undefined }
147
+ value ={filterComponent .key === ' tools' ? defaultRuntime : ' ' }
148
148
options ={choicesToOptions (choices [filterComponent .key ])}
149
149
onChange ={(v ): void => onFilterChange (filterComponent .key , v )}></Dropdown >
150
150
</div >
You can’t perform that action at this time.
0 commit comments