feat(ollama): enhance model pull with improved error handling, persistence, and UI

- Add catalog metadata lookup for better error messages with hints (e.g., for missing manifests or tags)
- Persist downloaded model references in saved remote models for future reuse
- Replace searchRemoteModels import with getSavedRemoteModels in search route
- Enhance pull progress UI to display download bytes, digest, and fallback message when data is unavailable
- Improve error payload with model details, URL, and tags count to guide users toward valid tags or models
This commit is contained in:
Evandro Fonseca Junior committed 2025-10-29 19:42:24 -03:00
1 parent 1545020afe
commit a8bb7cc22d
33 files changed
+1298 -235

No files matched your search

+5
View File
@@ -10,6 +10,9 @@ type Prefs = {
device: DevicePref;
gpuIndex: number;
numGpu: number;
// Preferências de design
chatLayout?: "compact" | "edge"; // compact = centralizado com max-width; edge = até as bordas
bubbleSize?: "sm" | "md" | "lg"; // tamanhos de bolha
};
const defaultPrefs: Prefs = {
@@ -18,6 +21,8 @@ const defaultPrefs: Prefs = {
device: "auto",
gpuIndex: 0,
numGpu: 1,
chatLayout: "compact",
bubbleSize: "md",
};
export function useUserPrefs() {