search domain prompt
This commit is contained in:
parent
83323c02ee
commit
a5ab41ef09
1 changed files with 6 additions and 2 deletions
|
@ -34,8 +34,12 @@ fi
|
|||
echo ""
|
||||
read -p "Deploy a private SearXNG instance for the research tool? [y/N]: " DEPLOY_SEARXNG
|
||||
BRAVE_API_KEY=""
|
||||
SEARCH_DOMAIN=""
|
||||
if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then
|
||||
SEARCH_DOMAIN="search.r21.io"
|
||||
# MODIFIED: Prompt for the SearXNG domain instead of hardcoding it.
|
||||
read -p "Enter the domain for SearXNG (e.g., search.example.com): " SEARCH_DOMAIN
|
||||
if [[ -z "$SEARCH_DOMAIN" ]]; then echo "❌ SearXNG domain cannot be empty."; exit 1; fi
|
||||
|
||||
echo "ℹ️ SearXNG will be deployed to https://$SEARCH_DOMAIN"
|
||||
read -p "Enter your Brave Search API key (highly recommended, or press Enter): " BRAVE_API_KEY
|
||||
fi
|
||||
|
@ -222,7 +226,7 @@ if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then
|
|||
echo " (This works because the containers are on a private network)."
|
||||
echo " 4. Save settings. You can now enable web search for any model."
|
||||
echo ""
|
||||
echo " OPTION B: Advanced Python Tool (For custom logic)"
|
||||
echo " OPTION B: Advanced Python Research Tool (For custom logic)"
|
||||
echo " 1. Go to Settings -> Tools and click 'Add Tool'."
|
||||
echo " 2. In the 'Load from URL' field, paste:"
|
||||
echo " https://raw.githubusercontent.com/iamarcel/open-webui-utils/main/research_tool.py"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue