From 6a0d88ab4ead9bde63efe6a8ee4e30333fa218f7 Mon Sep 17 00:00:00 2001 From: crowetic Date: Sat, 24 May 2025 08:57:01 -0700 Subject: [PATCH] updated config for open-webui --- setup-ai-stack.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/setup-ai-stack.sh b/setup-ai-stack.sh index 9571bfe..6b179be 100644 --- a/setup-ai-stack.sh +++ b/setup-ai-stack.sh @@ -72,6 +72,7 @@ if [[ "$1" == "--update" ]]; then -e OPENAI_API_BASE_URL=http://pipelines:9099 \ -e OPENAI_API_KEY=0p3n-w3bu! \ -e OLLAMA_MAX_LOADED_MODELS=2 \ + -e OLLAMA_EXTRA_ARGS="--parameter num_ctx:16384" \ -v ollama:/root/.ollama \ -v open-webui:/app/backend/data \ --name open-webui \ @@ -479,6 +480,7 @@ if [[ "$1" != "--update" ]]; then -e OPENAI_API_KEY=0p3n-w3bu! \ -e OLLAMA_MAX_LOADED_MODELS=2 \ -e OLLAMA_BASE_URL=http://localhost:11434 \ + -e OLLAMA_EXTRA_ARGS="--parameter num_ctx:16384" \ -v ollama:/root/.ollama \ -v open-webui:/app/backend/data \ --name open-webui \ @@ -511,6 +513,25 @@ if [[ "$1" != "--update" ]]; then fi fi +if [[ "$1" != "--update" ]]; then + if check_container_running "searxng"; then + echo "✅ Skipping SearXNG install (already running)." + else + read -p "➕ Install SearXNG for AI search capabilities? [y/N]: " searxng_prompt + if [[ "$searxng_prompt" =~ ^[Yy]$ ]]; then -echo "✅ AI stack setup complete." + # Run SearXNG - will not set base url so that multiple access domains are permitted. But this does disallow proxying images. + docker run -d \ + --name searxng \ + --network ai-stack-net \ + -p 8081:8080 \ + -v ~/ai-stack/searxng:/etc/searxng \ + -e "INSTANCE_NAME=searxng" \ + searxng/searxng:latest + fi + fi +fi + + + echo "✅ AI stack setup complete."