
{"id":147,"date":"2026-10-08T15:56:51","date_gmt":"2026-10-08T15:56:51","guid":{"rendered":"https:\/\/roboticsmaestro.com\/ai\/?p=147"},"modified":"2026-10-08T15:56:51","modified_gmt":"2026-10-08T15:56:51","slug":"get-a-model-running-in-openwebui-without-hitting-that-dreaded-model-not-found-error","status":"publish","type":"post","link":"https:\/\/roboticsmaestro.com\/ai\/blog\/2026\/10\/08\/get-a-model-running-in-openwebui-without-hitting-that-dreaded-model-not-found-error\/","title":{"rendered":"Get a model running in OpenWebUI without hitting that dreaded &#8220;model not found&#8221; error."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">let\u2019s make this <strong>super clear and beginner-friendly<\/strong> so you can get a model running in <strong>OpenWebUI<\/strong> without hitting that dreaded <em>&#8220;model not found&#8221;<\/em> error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s your <strong>step-by-step setup guide<\/strong>:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1 \u2013 Install OpenWebUI<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you haven\u2019t already:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BashCopy code<code>pip install open-webui\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or use Docker:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BashCopy code<code>docker run -d -p 3000:3000 ghcr.io\/open-webui\/open-webui:latest\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then open your browser at <strong>http:\/\/localhost:3000<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2 \u2013 Choose Your Backend<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">OpenWebUI doesn\u2019t run models by itself \u2014 it connects to a backend like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ollama<\/strong> (easy for local models)<\/li>\n\n\n\n<li><strong>llama.cpp<\/strong> (GGUF models)<\/li>\n\n\n\n<li><strong>text-generation-webui<\/strong> (Hugging Face models)<\/li>\n\n\n\n<li><strong>LM Studio<\/strong> (GUI-based local inference)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For most users, <strong>Ollama<\/strong> is the simplest.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3 \u2013 Install Your Backend<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ollama example:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download &amp; install from <a href=\"https:\/\/ollama.com\/download\">https:\/\/ollama.com\/download<\/a>.<\/li>\n\n\n\n<li>Verify installation:BashCopy code<code>ollama --version<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 4 \u2013 Download a Model<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With Ollama:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BashCopy code<code>ollama pull llama3\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can replace <code>llama3<\/code> with any supported model name (e.g., <code>mistral<\/code>, <code>gemma<\/code>, <code>llama2<\/code>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 5 \u2013 Connect OpenWebUI to Backend<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In OpenWebUI, go to <strong>Settings \u2192 Backends<\/strong>.<\/li>\n\n\n\n<li>Add your backend URL:\n<ul class=\"wp-block-list\">\n<li>For Ollama: <code>http:\/\/localhost:11434<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Save.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 6 \u2013 Add the Model in OpenWebUI<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Settings \u2192 Models<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Add Model<\/strong>.<\/li>\n\n\n\n<li>Enter:\n<ul class=\"wp-block-list\">\n<li><strong>Name<\/strong>: exactly as backend expects (<code>llama3<\/code>)<\/li>\n\n\n\n<li><strong>Backend<\/strong>: select your backend (Ollama)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Save.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 7 \u2013 Test the Model<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the chat interface.<\/li>\n\n\n\n<li>Select your model from the dropdown.<\/li>\n\n\n\n<li>Send a test prompt \u2014 if it responds, you\u2019re good to go!<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 8 \u2013 Optional: Local GGUF Models<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to run a <code>.gguf<\/code> file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install <strong>llama.cpp<\/strong> backend.<\/li>\n\n\n\n<li>Place your <code>.gguf<\/code> file in the models folder.<\/li>\n\n\n\n<li>Point OpenWebUI to that backend and model path.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">&#x2705; <strong>Tip:<\/strong> Always match the model name exactly \u2014 <code>llama3<\/code> is different from <code>llama-3<\/code> in most backends.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See below for <strong>ready-to-use OpenWebUI + Ollama config JSON<\/strong> so you can just paste it in and have the model instantly available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">you can just paste it in and have your model instantly available without extra guesswork.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This assumes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019ve installed <strong>Ollama<\/strong><\/li>\n\n\n\n<li>You\u2019ve pulled your model (e.g., <code>llama3<\/code>)<\/li>\n\n\n\n<li>Ollama is running locally on port <strong>11434<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>OpenWebUI Backend &amp; Model Config JSON<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">JsonCopy code<code>{\n  \"backends\": [\n    {\n      \"id\": \"ollama-local\",\n      \"name\": \"Ollama Local\",\n      \"type\": \"ollama\",\n      \"url\": \"http:\/\/localhost:11434\",\n      \"enabled\": true\n    }\n  ],\n  \"models\": [\n    {\n      \"id\": \"llama3\",\n      \"name\": \"llama3\",\n      \"backend\": \"ollama-local\",\n      \"parameters\": {\n        \"temperature\": 0.7,\n        \"max_tokens\": 2048,\n        \"top_p\": 0.9\n      },\n      \"enabled\": true\n    }\n  ]\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Apply This Config<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In OpenWebUI, go to <strong>Settings \u2192 Advanced \u2192 Import Config<\/strong>.<\/li>\n\n\n\n<li>Paste the JSON above.<\/li>\n\n\n\n<li>Save and restart OpenWebUI.<\/li>\n\n\n\n<li>In the chat dropdown, select <strong>llama3<\/strong> and start chatting.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Quick Test Command (Optional)<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before using OpenWebUI, you can test the model directly in Ollama:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BashCopy code<code>ollama run llama3 \"Hello, how are you?\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If this works, OpenWebUI will work too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#x1f4a1; <strong>Pro Tip:<\/strong><br>You can add multiple models by adding more entries under <code>\"models\"<\/code> in the JSON \u2014 just make sure you\u2019ve pulled them in Ollama first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;let\u2019s set you up with a <strong>multi-model OpenWebUI + Ollama config<\/strong> so you can instantly switch between models like <code>llama3<\/code>, <code>mistral<\/code>, and <code>gemma<\/code> without touching settings again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Multi-Model Config JSON for OpenWebUI + Ollama<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">JsonCopy code<code>{\n  \"backends\": [\n    {\n      \"id\": \"ollama-local\",\n      \"name\": \"Ollama Local\",\n      \"type\": \"ollama\",\n      \"url\": \"http:\/\/localhost:11434\",\n      \"enabled\": true\n    }\n  ],\n  \"models\": [\n    {\n      \"id\": \"llama3\",\n      \"name\": \"llama3\",\n      \"backend\": \"ollama-local\",\n      \"parameters\": {\n        \"temperature\": 0.7,\n        \"max_tokens\": 2048,\n        \"top_p\": 0.9\n      },\n      \"enabled\": true\n    },\n    {\n      \"id\": \"mistral\",\n      \"name\": \"mistral\",\n      \"backend\": \"ollama-local\",\n      \"parameters\": {\n        \"temperature\": 0.7,\n        \"max_tokens\": 2048,\n        \"top_p\": 0.9\n      },\n      \"enabled\": true\n    },\n    {\n      \"id\": \"gemma\",\n      \"name\": \"gemma\",\n      \"backend\": \"ollama-local\",\n      \"parameters\": {\n        \"temperature\": 0.7,\n        \"max_tokens\": 2048,\n        \"top_p\": 0.9\n      },\n      \"enabled\": true\n    }\n  ]\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Use This<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Pull the models in Ollama first<\/strong>:BashCopy code<code>ollama pull llama3 ollama pull mistral ollama pull gemma<\/code><\/li>\n\n\n\n<li>In <strong>OpenWebUI<\/strong>, go to <strong>Settings \u2192 Advanced \u2192 Import Config<\/strong>.<\/li>\n\n\n\n<li>Paste the JSON above and save.<\/li>\n\n\n\n<li>Restart OpenWebUI.<\/li>\n\n\n\n<li>In the chat dropdown, you\u2019ll now see <strong>llama3<\/strong>, <strong>mistral<\/strong>, and <strong>gemma<\/strong> ready to use.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">&#x1f4a1; <strong>Pro Tip:<\/strong><br>You can tweak <code>\"temperature\"<\/code>, <code>\"max_tokens\"<\/code>, and <code>\"top_p\"<\/code> per model in the JSON to customize their behavior.<br>For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lower <code>temperature<\/code> \u2192 more deterministic answers.<\/li>\n\n\n\n<li>Higher <code>temperature<\/code> \u2192 more creative answers.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">make your <strong>auto-sync config<\/strong> so OpenWebUI will automatically detect and load <strong>all models installed in Ollama<\/strong> without you having to manually add them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This approach uses Ollama\u2019s API to fetch the model list dynamically, so whenever you <code>ollama pull<\/code> a new model, it will appear in OpenWebUI instantly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Auto-Sync Ollama Models in OpenWebUI<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1 \u2013 Enable Dynamic Model Loading<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In OpenWebUI\u2019s <code>config.json<\/code> (or via <strong>Settings \u2192 Advanced<\/strong>), add:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">JsonCopy code<code>{\n  \"backends\": [\n    {\n      \"id\": \"ollama-auto\",\n      \"name\": \"Ollama Auto\",\n      \"type\": \"ollama\",\n      \"url\": \"http:\/\/localhost:11434\",\n      \"enabled\": true,\n      \"auto_sync\": true\n    }\n  ]\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2 \u2013 How It Works<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>auto_sync: true<\/code> tells OpenWebUI to call Ollama\u2019s <code>\/api\/tags<\/code> endpoint on startup.<\/li>\n\n\n\n<li>It retrieves <strong>all installed models<\/strong> and adds them to the dropdown automatically.<\/li>\n\n\n\n<li>No manual JSON editing needed \u2014 just pull models in Ollama.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3 \u2013 Pull Models in Ollama<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BashCopy code<code>ollama pull llama3\nollama pull mistral\nollama pull gemma\nollama pull qwen2\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After restart, OpenWebUI will list <strong>all of them<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4 \u2013 Restart OpenWebUI<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restart your OpenWebUI instance so it refreshes the model list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5 \u2013 Test<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the chat dropdown \u2014 you should see every model you\u2019ve pulled in Ollama ready to use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#x1f4a1; <strong>Bonus Tip:<\/strong><br>If you want OpenWebUI to refresh models <strong>without restarting<\/strong>, you can enable <strong>live sync<\/strong> in the backend settings. This will check Ollama every few minutes for new models.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want, I can also give you a <strong>Python helper script<\/strong> that automatically pulls models from Ollama and updates OpenWebUI\u2019s config \u2014 perfect if you want to keep both in sync without touching settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">let\u2019s make a <strong>Python helper script<\/strong> that automatically:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Reads all installed models from <strong>Ollama<\/strong><\/li>\n\n\n\n<li>Updates <strong>OpenWebUI\u2019s config.json<\/strong> so they appear instantly<\/li>\n\n\n\n<li>Optionally pulls new models you specify<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">This way, OpenWebUI and Ollama will always stay in sync without manual edits.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Auto-Sync Script: Ollama \u2192 OpenWebUI<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">PythonCopy code<code>import requests\nimport json\nimport os\n\n# Ollama API endpoint\nOLLAMA_URL = \"http:\/\/localhost:11434\"\n\n# Path to OpenWebUI config.json (adjust if needed)\nOPENWEBUI_CONFIG_PATH = os.path.expanduser(\"~\/.openwebui\/config.json\")\n\ndef get_ollama_models():\n    \"\"\"Fetch all installed models from Ollama.\"\"\"\n    resp = requests.get(f\"{OLLAMA_URL}\/api\/tags\")\n    resp.raise_for_status()\n    models = [m[\"name\"] for m in resp.json().get(\"models\", [])]\n    return models\n\ndef update_openwebui_config(models):\n    \"\"\"Update OpenWebUI config.json with all Ollama models.\"\"\"\n    if not os.path.exists(OPENWEBUI_CONFIG_PATH):\n        print(\"Config file not found. Please run OpenWebUI once to generate it.\")\n        return\n\n    with open(OPENWEBUI_CONFIG_PATH, \"r\") as f:\n        config = json.load(f)\n\n    # Ensure backend exists\n    backend_id = \"ollama-auto\"\n    backend = {\n        \"id\": backend_id,\n        \"name\": \"Ollama Auto\",\n        \"type\": \"ollama\",\n        \"url\": OLLAMA_URL,\n        \"enabled\": True\n    }\n    if not any(b[\"id\"] == backend_id for b in config.get(\"backends\", [])):\n        config.setdefault(\"backends\", []).append(backend)\n\n    # Add models dynamically\n    config[\"models\"] = []\n    for model in models:\n        config[\"models\"].append({\n            \"id\": model,\n            \"name\": model,\n            \"backend\": backend_id,\n            \"parameters\": {\n                \"temperature\": 0.7,\n                \"max_tokens\": 2048,\n                \"top_p\": 0.9\n            },\n            \"enabled\": True\n        })\n\n    with open(OPENWEBUI_CONFIG_PATH, \"w\") as f:\n        json.dump(config, f, indent=2)\n\n    print(f\"&#x2705; Synced {len(models)} models from Ollama to OpenWebUI.\")\n\ndef pull_models(models_to_pull):\n    \"\"\"Pull new models into Ollama.\"\"\"\n    for model in models_to_pull:\n        print(f\"&#x2b07;&#xfe0f; Pulling {model}...\")\n        resp = requests.post(f\"{OLLAMA_URL}\/api\/pull\", json={\"name\": model})\n        if resp.status_code == 200:\n            print(f\"&#x2705; Pulled {model}\")\n        else:\n            print(f\"&#x274c; Failed to pull {model}: {resp.text}\")\n\nif __name__ == \"__main__\":\n    # Optional: specify models to pull before syncing\n    models_to_pull = [\"llama3\", \"mistral\", \"gemma\"]\n    pull_models(models_to_pull)\n\n    # Sync installed models to OpenWebUI\n    installed_models = get_ollama_models()\n    update_openwebui_config(installed_models)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Use<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Save this script as <code>ollama_sync.py<\/code>.<\/li>\n\n\n\n<li>Install dependencies:BashCopy code<code>pip install requests<\/code><\/li>\n\n\n\n<li>Run:BashCopy code<code>python ollama_sync.py<\/code><\/li>\n\n\n\n<li>Restart OpenWebUI \u2014 all Ollama models will now appear in the dropdown.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">let\u2019s upgrade the <strong>Ollama \u2192 OpenWebUI sync script<\/strong> so it not only updates <code>config.json<\/code> but also <strong>live-refreshes models in OpenWebUI<\/strong> without restarting the UI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This works because OpenWebUI exposes a backend API that can reload models dynamically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Live-Refresh Ollama Models in OpenWebUI<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">PythonCopy code<code>import requests\nimport json\nimport os\n\n# Ollama API endpoint\nOLLAMA_URL = \"http:\/\/localhost:11434\"\n\n# OpenWebUI API endpoint (adjust port if needed)\nOPENWEBUI_URL = \"http:\/\/localhost:3000\"\n\n# Path to OpenWebUI config.json (optional backup)\nOPENWEBUI_CONFIG_PATH = os.path.expanduser(\"~\/.openwebui\/config.json\")\n\ndef get_ollama_models():\n    \"\"\"Fetch all installed models from Ollama.\"\"\"\n    resp = requests.get(f\"{OLLAMA_URL}\/api\/tags\")\n    resp.raise_for_status()\n    models = [m[\"name\"] for m in resp.json().get(\"models\", [])]\n    return models\n\ndef sync_models_live(models):\n    \"\"\"Send models directly to OpenWebUI via API.\"\"\"\n    backend_id = \"ollama-auto\"\n    payload = {\n        \"backends\": [\n            {\n                \"id\": backend_id,\n                \"name\": \"Ollama Auto\",\n                \"type\": \"ollama\",\n                \"url\": OLLAMA_URL,\n                \"enabled\": True\n            }\n        ],\n        \"models\": [\n            {\n                \"id\": model,\n                \"name\": model,\n                \"backend\": backend_id,\n                \"parameters\": {\n                    \"temperature\": 0.7,\n                    \"max_tokens\": 2048,\n                    \"top_p\": 0.9\n                },\n                \"enabled\": True\n            }\n            for model in models\n        ]\n    }\n\n    resp = requests.post(f\"{OPENWEBUI_URL}\/api\/config\/import\", json=payload)\n    if resp.status_code == 200:\n        print(f\"&#x2705; Live-synced {len(models)} models to OpenWebUI.\")\n    else:\n        print(f\"&#x274c; Failed to sync: {resp.status_code} {resp.text}\")\n\ndef pull_models(models_to_pull):\n    \"\"\"Pull new models into Ollama.\"\"\"\n    for model in models_to_pull:\n        print(f\"&#x2b07;&#xfe0f; Pulling {model}...\")\n        resp = requests.post(f\"{OLLAMA_URL}\/api\/pull\", json={\"name\": model})\n        if resp.status_code == 200:\n            print(f\"&#x2705; Pulled {model}\")\n        else:\n            print(f\"&#x274c; Failed to pull {model}: {resp.text}\")\n\nif __name__ == \"__main__\":\n    # Optional: specify models to pull before syncing\n    models_to_pull = [\"llama3\", \"mistral\", \"gemma\"]\n    pull_models(models_to_pull)\n\n    # Get installed models from Ollama\n    installed_models = get_ollama_models()\n\n    # Live-sync to OpenWebUI\n    sync_models_live(installed_models)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How This Works<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 1:<\/strong> Pull models from Ollama (optional)<\/li>\n\n\n\n<li><strong>Step 2:<\/strong> Fetch all installed models via <code>\/api\/tags<\/code><\/li>\n\n\n\n<li><strong>Step 3:<\/strong> Send them to OpenWebUI\u2019s <code>\/api\/config\/import<\/code> endpoint<\/li>\n\n\n\n<li><strong>Step 4:<\/strong> Models appear instantly in the dropdown \u2014 no restart needed<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Usage<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Save as <code>ollama_live_sync.py<\/code><\/li>\n\n\n\n<li>Install dependencies:BashCopy code<code>pip install requests<\/code><\/li>\n\n\n\n<li>Run:BashCopy code<code>python ollama_live_sync.py<\/code><\/li>\n\n\n\n<li>Open OpenWebUI \u2014 your models are already there.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">&#x1f4a1; <strong>Pro Tip:<\/strong><br>You can run this script every few minutes with a cron job or Windows Task Scheduler to keep OpenWebUI always in sync with Ollama.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want, I can <strong>extend this further<\/strong> so it also <strong>auto-pulls trending models from Ollama\u2019s registry<\/strong> and adds them to OpenWebUI \u2014 meaning you\u2019d always have the latest popular models ready to use without searching manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>let\u2019s make this super clear and beginner-friendly so you can get a model running in OpenWebUI without hitting that dreaded &#8220;model not found&#8221; error. Here\u2019s your step-by-step setup guide: Step 1 \u2013 Install OpenWebUI If you haven\u2019t already: BashCopy codepip install open-webui Or use Docker: BashCopy codedocker run -d -p 3000:3000 ghcr.io\/open-webui\/open-webui:latest Then open your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_regular_price":[],"currency_symbol":[],"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"post_slider_layout_featured_media_urls":{"thumbnail":"","post_slider_layout_landscape_large":"","post_slider_layout_portrait_large":"","post_slider_layout_square_large":"","post_slider_layout_landscape":"","post_slider_layout_portrait":"","post_slider_layout_square":"","full":""},"_links":{"self":[{"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/posts\/147\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roboticsmaestro.com\/ai\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}