mirror of
https://github.com/vndangkhoa/Sys-Arc-Visl.git
synced 2026-04-05 01:17:57 +07:00
fix: smart default for ollama url on https
This commit is contained in:
parent
1b05ef7ac8
commit
d74ae097af
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ const initialSettings = {
|
|||
aiMode: getInitialAiMode(),
|
||||
onlineProvider: 'openai' as OnlineProvider,
|
||||
apiKey: '',
|
||||
ollamaUrl: 'http://localhost:11434',
|
||||
ollamaUrl: typeof window !== 'undefined' && window.location.protocol === 'https:'
|
||||
? window.location.origin
|
||||
: 'http://localhost:11434',
|
||||
modelName: 'llama3.2-vision',
|
||||
theme: getInitialTheme(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue