mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 15:56:16 +02:00
fix(ai-chat): clearing ollama url results in a 500 error
This commit is contained in:
parent
9f58280a8e
commit
ac87cfce59
|
|
@ -56,7 +56,7 @@ export default class SettingsController {
|
||||||
|
|
||||||
async models({ inertia }: HttpContext) {
|
async models({ inertia }: HttpContext) {
|
||||||
const availableModels = await this.ollamaService.getAvailableModels({ sort: 'pulls', recommendedOnly: false, query: null, limit: 15 });
|
const availableModels = await this.ollamaService.getAvailableModels({ sort: 'pulls', recommendedOnly: false, query: null, limit: 15 });
|
||||||
const installedModels = await this.ollamaService.getModels();
|
const installedModels = await this.ollamaService.getModels().catch(() => [])
|
||||||
const chatSuggestionsEnabled = await KVStore.getValue('chat.suggestionsEnabled')
|
const chatSuggestionsEnabled = await KVStore.getValue('chat.suggestionsEnabled')
|
||||||
const aiAssistantCustomName = await KVStore.getValue('ai.assistantCustomName')
|
const aiAssistantCustomName = await KVStore.getValue('ai.assistantCustomName')
|
||||||
const remoteOllamaUrl = await KVStore.getValue('ai.remoteOllamaUrl')
|
const remoteOllamaUrl = await KVStore.getValue('ai.remoteOllamaUrl')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user