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
4dcec485
Commit
4dcec485
authored
Jun 09, 2024
by
teampen
Browse files
adding Serply as an alternative web search
parent
efb4a710
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
backend/config.py
backend/config.py
+6
-0
No files found.
backend/config.py
View file @
4dcec485
...
@@ -852,6 +852,12 @@ SERPER_API_KEY = PersistentConfig(
...
@@ -852,6 +852,12 @@ SERPER_API_KEY = PersistentConfig(
os
.
getenv
(
"SERPER_API_KEY"
,
""
),
os
.
getenv
(
"SERPER_API_KEY"
,
""
),
)
)
SERPLY_API_KEY
=
PersistentConfig
(
"SERPLY_API_KEY"
,
"rag.web.search.serply_api_key"
,
os
.
getenv
(
"SERPLY_API_KEY"
,
""
),
)
RAG_WEB_SEARCH_RESULT_COUNT
=
PersistentConfig
(
RAG_WEB_SEARCH_RESULT_COUNT
=
PersistentConfig
(
"RAG_WEB_SEARCH_RESULT_COUNT"
,
"RAG_WEB_SEARCH_RESULT_COUNT"
,
...
...
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