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
ddf06329
Unverified
Commit
ddf06329
authored
Apr 26, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 26, 2024
Browse files
Merge pull request #1734 from darlanalves/env-docs-dir
feat: allow a docs directory coming from env
parents
984dbf13
89e88131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/config.py
backend/config.py
+2
-2
No files found.
backend/config.py
View file @
ddf06329
...
...
@@ -220,7 +220,7 @@ Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
# Docs DIR
####################################
DOCS_DIR
=
f
"
{
DATA_DIR
}
/docs"
DOCS_DIR
=
os
.
getenv
(
"DOCS_DIR"
,
f
"
{
DATA_DIR
}
/docs"
)
Path
(
DOCS_DIR
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
...
...
@@ -476,7 +476,7 @@ When answer to user:
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.
Given the context information, answer the query.
Query: [query]"""
...
...
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