{
  "schemaVersion": "1.0",
  "item": {
    "slug": "chat-ollama-gradio",
    "name": "Pywayne Llm Chat Ollama Gradio",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/wangyendt/chat-ollama-gradio",
    "canonicalUrl": "https://clawhub.ai/wangyendt/chat-ollama-gradio",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/chat-ollama-gradio",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=chat-ollama-gradio",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/chat-ollama-gradio"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/chat-ollama-gradio",
    "agentPageUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Pywayne Chat Ollama Gradio",
        "body": "This module provides a Gradio-based web chat interface for Ollama models with multi-session support."
      },
      {
        "title": "Quick Start",
        "body": "from pywayne.llm.chat_ollama_gradio import OllamaChatGradio\n\n# Create and launch chat interface\napp = OllamaChatGradio(\n    base_url=\"http://localhost:11434/v1\",\n    server_port=7870\n)\napp.launch()"
      },
      {
        "title": "Configuration",
        "body": "ParameterDefaultDescriptionbase_url\"http://localhost:11434/v1\"Ollama API base URLserver_name\"0.0.0.0\"Server host nameserver_port7870Server portroot_path\"\"Root path for reverse proxyapi_key\"ollama\"API key (for Ollama compatibility)"
      },
      {
        "title": "Model Discovery",
        "body": "Automatically discovers available Ollama models by running ollama list:\n\nExcludes models with 'embed' in the name\nFalls back to qwen2.5:0.5b if no models found"
      },
      {
        "title": "Creating New Sessions",
        "body": "# UI method: Click \"新建会话\" button\nnew_chat_id, new_history, new_choices = app.create_new_chat()"
      },
      {
        "title": "Switching Sessions",
        "body": "# UI method: Select from \"历史会话\" radio list\nhistory = app.switch_chat(selected_chat_id)"
      },
      {
        "title": "OllamaChatGradio",
        "body": "MethodDescriptionget_ollama_models()Get list of available Ollama modelsinit_chat_manager()Initialize ChatManager instancecreate_new_chat()Create new chat session, returns (chat_id, history, radio_update)switch_chat(chat_id)Switch to specified chat sessionformat_history(history)Format history for displaychat(message, history, model_name)Process chat message with streamingcreate_demo()Create Gradio interfacelaunch()Launch Gradio server"
      },
      {
        "title": "UI Components",
        "body": "ComponentDescriptionchatbotMain chat display areamsgMessage input textboxmodel_dropdownModel selection dropdownchat_id_textCurrent session ID (read-only)new_chat_btnButton to create new sessionchat_history_listRadio list for session switching"
      },
      {
        "title": "Requirements",
        "body": "gradio - Web UI framework\npywayne.llm.chat_bot - ChatManager and LLMConfig\nollama CLI - Must be installed and accessible"
      },
      {
        "title": "Notes",
        "body": "Uses ChatManager for multi-session support\nStreaming responses update UI in real-time\nSession history persists in memory (not persistent)\nRequires Ollama to be running before launching"
      }
    ],
    "body": "Pywayne Chat Ollama Gradio\n\nThis module provides a Gradio-based web chat interface for Ollama models with multi-session support.\n\nQuick Start\nfrom pywayne.llm.chat_ollama_gradio import OllamaChatGradio\n\n# Create and launch chat interface\napp = OllamaChatGradio(\n    base_url=\"http://localhost:11434/v1\",\n    server_port=7870\n)\napp.launch()\n\nConfiguration\nParameter\tDefault\tDescription\nbase_url\t\"http://localhost:11434/v1\"\tOllama API base URL\nserver_name\t\"0.0.0.0\"\tServer host name\nserver_port\t7870\tServer port\nroot_path\t\"\"\tRoot path for reverse proxy\napi_key\t\"ollama\"\tAPI key (for Ollama compatibility)\nModel Discovery\n\nAutomatically discovers available Ollama models by running ollama list:\n\nExcludes models with 'embed' in the name\nFalls back to qwen2.5:0.5b if no models found\nSession Management\nCreating New Sessions\n# UI method: Click \"新建会话\" button\nnew_chat_id, new_history, new_choices = app.create_new_chat()\n\nSwitching Sessions\n# UI method: Select from \"历史会话\" radio list\nhistory = app.switch_chat(selected_chat_id)\n\nAPI Reference\nOllamaChatGradio\nMethod\tDescription\nget_ollama_models()\tGet list of available Ollama models\ninit_chat_manager()\tInitialize ChatManager instance\ncreate_new_chat()\tCreate new chat session, returns (chat_id, history, radio_update)\nswitch_chat(chat_id)\tSwitch to specified chat session\nformat_history(history)\tFormat history for display\nchat(message, history, model_name)\tProcess chat message with streaming\ncreate_demo()\tCreate Gradio interface\nlaunch()\tLaunch Gradio server\nUI Components\nComponent\tDescription\nchatbot\tMain chat display area\nmsg\tMessage input textbox\nmodel_dropdown\tModel selection dropdown\nchat_id_text\tCurrent session ID (read-only)\nnew_chat_btn\tButton to create new session\nchat_history_list\tRadio list for session switching\nRequirements\ngradio - Web UI framework\npywayne.llm.chat_bot - ChatManager and LLMConfig\nollama CLI - Must be installed and accessible\nNotes\nUses ChatManager for multi-session support\nStreaming responses update UI in real-time\nSession history persists in memory (not persistent)\nRequires Ollama to be running before launching"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/wangyendt/chat-ollama-gradio",
    "publisherUrl": "https://clawhub.ai/wangyendt/chat-ollama-gradio",
    "owner": "wangyendt",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/chat-ollama-gradio",
    "downloadUrl": "https://openagent3.xyz/downloads/chat-ollama-gradio",
    "agentUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/chat-ollama-gradio/agent.md"
  }
}