Add LM Studio support (#22)
This commit is contained in:
committed by
GitHub
parent
3529627172
commit
5fc49231ee
@@ -20,13 +20,13 @@ export function useLocalModels() {
|
||||
const loadModels = useCallback(async () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const modelList = await ipcClient.listLocalModels();
|
||||
const modelList = await ipcClient.listLocalOllamaModels();
|
||||
setModels(modelList);
|
||||
setError(null);
|
||||
|
||||
return modelList;
|
||||
} catch (error) {
|
||||
console.error("Error loading local models:", error);
|
||||
console.error("Error loading local Ollama models:", error);
|
||||
setError(error instanceof Error ? error : new Error(String(error)));
|
||||
return [];
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user