Add LM Studio support (#22)

This commit is contained in:
Piotr Wilkin (ilintar)
2025-05-02 23:51:32 +02:00
committed by GitHub
parent 3529627172
commit 5fc49231ee
15 changed files with 394 additions and 123 deletions

View File

@@ -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 {