feat(ui): add Ollama logo and make API key optional

- Add Ollama SVG logo to ui/public/icons/
- Add icon property to both ollama and ollama-cloud presets
- Make API key field optional for local Ollama (show input with hint)
- Update placeholder: "Optional - only if auth is enabled"
- Allows power users with Ollama auth configured to provide key
This commit is contained in:
kaitranntt
2026-01-22 14:24:37 -05:00
parent 2b7d18c4c6
commit 2cb77f2dfd
3 changed files with 49 additions and 45 deletions
+2
View File
@@ -53,6 +53,7 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
defaultProfileName: 'ollama',
badge: 'Local',
featured: true,
icon: '/icons/ollama.svg',
defaultModel: 'qwen3-coder',
requiresApiKey: false,
apiKeyPlaceholder: '',
@@ -158,6 +159,7 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
baseUrl: 'https://ollama.com',
defaultProfileName: 'ollama-cloud',
badge: 'Cloud',
icon: '/icons/ollama.svg',
defaultModel: 'glm-4.7:cloud',
requiresApiKey: true,
apiKeyPlaceholder: 'YOUR_OLLAMA_CLOUD_API_KEY',