Commit Graph

3 Commits

Author SHA1 Message Date
f4febf8973 fix: initialize custom parameters from model defaults
- Fetch actual model defaults from Ollama's /api/show endpoint
- Parse YAML-like parameters field (e.g., "temperature 0.7")
- Cache model defaults to avoid repeated API calls
- Initialize sliders with model's actual values when enabling custom params
- Show asterisk indicator when parameter differs from model default
- Reset button now restores to model defaults, not hardcoded values
2026-01-02 20:52:47 +01:00
d54acb97a3 fix: improve light mode theming and text contrast
- Increase light mode text contrast in app.css (slate.600→700, slate.500→600)
- Add light/dark mode prose styles in MessageContent.svelte for proper markdown rendering
- Convert hardcoded slate-* classes to theme utilities across 37 components
- Fix code block copy button and scrollbar theming for both modes
- Update all route pages (models, tools, knowledge, prompts) with theme classes
- Ensure consistent theming in modals, dialogs, and form inputs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 06:20:48 +01:00
bb5720434a feat: add streaming stats, settings panel, model management, and export/import
Implement four major features for the Ollama WebUI:

1. Streaming Stats - Real-time performance metrics display
   - Tokens per second, time to first token, total tokens
   - Fade-out display after stream completion
   - New streaming-metrics.svelte.ts store and StreamingStats component

2. Settings Panel - Model parameter configuration
   - Temperature, top_k, top_p, num_ctx sliders
   - localStorage persistence for global defaults
   - Collapsible panel in chat window with gear icon toggle

3. Model Management - Pull/delete models from UI
   - Add pullModel() and deleteModel() methods to Ollama client
   - Progress tracking with speed and ETA calculations
   - PullModelDialog component and model-operations store

4. Export/Import - Full conversation backup/restore
   - JSON export with full fidelity, Markdown for readability
   - Import validation with error/warning display
   - Export button in conversation items, import in sidebar header

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 03:35:32 +01:00