feat(acp+): models/providers in desktop on ACP+ (#9987)

This commit is contained in:
Alex Hancock
2026-06-26 13:04:24 -04:00
committed by GitHub
parent d1d2166190
commit 2fda760641
49 changed files with 2734 additions and 1687 deletions
@@ -19,7 +19,6 @@ import {
getLocalModelDownloadProgress,
cancelLocalModelDownload,
deleteLocalModel,
setConfigProvider,
type DownloadProgress,
type DownloadModelRequest,
type LocalModelResponse,
@@ -28,6 +27,7 @@ import { HuggingFaceModelSearch } from './HuggingFaceModelSearch';
import { ModelSettingsPanel } from './ModelSettingsPanel';
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '../../ui/dialog';
import HuggingFaceSignInPrompt from '../auth/HuggingFaceSignInPrompt';
import { acpSaveDefaults } from '../../../acp/providers';
const i18n = defineMessages({
title: {
@@ -247,10 +247,7 @@ export const LocalInferenceSettings = () => {
const selectModel = async (modelId: string) => {
try {
await setConfigProvider({
body: { provider: 'local', model: modelId },
throwOnError: true,
});
await acpSaveDefaults('local', modelId);
await refreshCurrentModelAndProvider();
} catch (error) {
console.error('Failed to select model:', error);