Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c5e36c8d
Commit
c5e36c8d
authored
Oct 18, 2023
by
Timothy J. Baek
Browse files
Update contants.ts
parent
f5bca7c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/lib/contants.ts
src/lib/contants.ts
+8
-5
No files found.
src/lib/contants.ts
View file @
c5e36c8d
import
{
browser
,
dev
}
from
'
$app/environment
'
;
export
const
ENDPOINT
=
browser
export
const
ENDPOINT
=
process
.
env
.
OLLAMA_ENDPOINT
!=
undefined
?
process
.
env
.
OLLAMA_ENDPOINT
:
browser
?
`http://
${
location
.
hostname
}
:11434`
:
dev
?
'
http://127.0.0.1:11434
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment