feat: Add Ollama Cloud integration with 20+ free AI models

- Added AI Model Manager to sidebar for quick model switching
- Integrated Ollama Cloud API with official models from ollama.com
- Added AISettingsModal with searchable model catalog
- Models include: GPT-OSS 120B, DeepSeek V3.2, Gemini 3 Pro, Qwen3 Coder, etc.
- Added 'Get Key' button linking to ollama.com/settings/keys
- Updated README with Ollama Cloud documentation and free API key instructions
- Fixed ChatPanel export issue
- Added Brain icon for reasoning models
This commit is contained in:
Gemini AI
2025-12-20 13:01:52 +04:00
Unverified
parent 33261fdc56
commit e52098f3a8
10 changed files with 699 additions and 412 deletions

View File

@@ -91,5 +91,11 @@ contextBridge.exposeInMainWorld('electron', {
// Browser
openBrowser: (url) => ipcRenderer.invoke('vi-open-browser', { url })
},
// Ollama Cloud
ollama: {
getKeyStatus: () => ipcRenderer.invoke('ollama-get-key-status'),
saveKey: (key) => ipcRenderer.invoke('ollama-save-key', { key }),
getModels: () => ipcRenderer.invoke('ollama-get-models')
}
});