File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
apps/desktop/src/components/settings/views Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,6 @@ export default function LocalAI() {
194
194
195
195
const setCustomLLMModel = useMutation ( {
196
196
mutationFn : ( model : string ) => connectorCommands . setCustomLlmModel ( model ) ,
197
- onSuccess : ( ) => {
198
- customLLMModels . refetch ( ) ;
199
- } ,
200
197
} ) ;
201
198
202
199
const setCustomLLMConnection = useMutation ( {
@@ -212,11 +209,6 @@ export default function LocalAI() {
212
209
queryFn : ( ) => connectorCommands . getCustomLlmEnabled ( ) ,
213
210
} ) ;
214
211
215
- const customLLMModels = useQuery ( {
216
- queryKey : [ "custom-llm-models" ] ,
217
- queryFn : ( ) => connectorCommands . listCustomLlmModels ( ) ,
218
- } ) ;
219
-
220
212
const setCustomLLMEnabled = useMutation ( {
221
213
mutationFn : ( enabled : boolean ) => connectorCommands . setCustomLlmEnabled ( enabled ) ,
222
214
onSuccess : ( ) => {
Original file line number Diff line number Diff line change @@ -157,10 +157,7 @@ impl<R: tauri::Runtime, T: tauri::Manager<R>> ConnectorPluginExt<R> for T {
157
157
. flatten ( ) ;
158
158
159
159
let conn = ConnectionLLM :: Custom ( Connection { api_base, api_key } ) ;
160
- match conn. models ( ) . await {
161
- Ok ( models) if !models. is_empty ( ) => Ok ( conn) ,
162
- _ => Err ( crate :: Error :: NoModelsFound ) ,
163
- }
160
+ Ok ( conn)
164
161
} else {
165
162
self . get_local_llm_connection ( ) . await
166
163
}
You can’t perform that action at this time.
0 commit comments