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
f70e6caf
Unverified
Commit
f70e6caf
authored
Feb 03, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 03, 2024
Browse files
Merge pull request #640 from ollama-webui/version
chore: version update
parents
323ec378
f73a1fc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
backend/config.py
backend/config.py
+6
-3
No files found.
backend/config.py
View file @
f70e6caf
...
@@ -89,7 +89,7 @@ DEFAULT_PROMPT_SUGGESTIONS = os.environ.get(
...
@@ -89,7 +89,7 @@ DEFAULT_PROMPT_SUGGESTIONS = os.environ.get(
# WEBUI_VERSION
# WEBUI_VERSION
####################################
####################################
WEBUI_VERSION
=
os
.
environ
.
get
(
"WEBUI_VERSION"
,
"v1.0.0-alpha.
61
"
)
WEBUI_VERSION
=
os
.
environ
.
get
(
"WEBUI_VERSION"
,
"v1.0.0-alpha.
92
"
)
####################################
####################################
# WEBUI_AUTH (Required for security)
# WEBUI_AUTH (Required for security)
...
@@ -103,7 +103,9 @@ WEBUI_AUTH = True
...
@@ -103,7 +103,9 @@ WEBUI_AUTH = True
WEBUI_SECRET_KEY
=
os
.
environ
.
get
(
WEBUI_SECRET_KEY
=
os
.
environ
.
get
(
"WEBUI_SECRET_KEY"
,
"WEBUI_SECRET_KEY"
,
os
.
environ
.
get
(
"WEBUI_JWT_SECRET_KEY"
,
"t0p-s3cr3t"
)
# DEPRECATED: remove at next major version
os
.
environ
.
get
(
"WEBUI_JWT_SECRET_KEY"
,
"t0p-s3cr3t"
),
# DEPRECATED: remove at next major version
)
)
if
WEBUI_AUTH
and
WEBUI_SECRET_KEY
==
""
:
if
WEBUI_AUTH
and
WEBUI_SECRET_KEY
==
""
:
...
@@ -116,7 +118,8 @@ if WEBUI_AUTH and WEBUI_SECRET_KEY == "":
...
@@ -116,7 +118,8 @@ if WEBUI_AUTH and WEBUI_SECRET_KEY == "":
CHROMA_DATA_PATH
=
f
"
{
DATA_DIR
}
/vector_db"
CHROMA_DATA_PATH
=
f
"
{
DATA_DIR
}
/vector_db"
EMBED_MODEL
=
"all-MiniLM-L6-v2"
EMBED_MODEL
=
"all-MiniLM-L6-v2"
CHROMA_CLIENT
=
chromadb
.
PersistentClient
(
CHROMA_CLIENT
=
chromadb
.
PersistentClient
(
path
=
CHROMA_DATA_PATH
,
settings
=
Settings
(
allow_reset
=
True
,
anonymized_telemetry
=
False
)
path
=
CHROMA_DATA_PATH
,
settings
=
Settings
(
allow_reset
=
True
,
anonymized_telemetry
=
False
),
)
)
CHUNK_SIZE
=
1500
CHUNK_SIZE
=
1500
CHUNK_OVERLAP
=
100
CHUNK_OVERLAP
=
100
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