Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Gradio-based chat interface for Ollama with multi-session management. Use when working with pywayne.llm.chat_ollama_gradio module to create a web-based chat...
Gradio-based chat interface for Ollama with multi-session management. Use when working with pywayne.llm.chat_ollama_gradio module to create a web-based chat...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
This module provides a Gradio-based web chat interface for Ollama models with multi-session support.
from pywayne.llm.chat_ollama_gradio import OllamaChatGradio # Create and launch chat interface app = OllamaChatGradio( base_url="http://localhost:11434/v1", server_port=7870 ) app.launch()
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)
Automatically discovers available Ollama models by running ollama list: Excludes models with 'embed' in the name Falls back to qwen2.5:0.5b if no models found
# UI method: Click "新建会话" button new_chat_id, new_history, new_choices = app.create_new_chat()
# UI method: Select from "历史会话" radio list history = app.switch_chat(selected_chat_id)
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
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
gradio - Web UI framework pywayne.llm.chat_bot - ChatManager and LLMConfig ollama CLI - Must be installed and accessible
Uses ChatManager for multi-session support Streaming responses update UI in real-time Session history persists in memory (not persistent) Requires Ollama to be running before launching
Messaging, meetings, inboxes, CRM, and teammate communication surfaces.
Largest current source with strong distribution and engagement signals.