{"id":26422851,"url":"https://github.com/malgorath/chatbot","last_synced_at":"2026-05-06T17:33:30.366Z","repository":{"id":281238596,"uuid":"694178737","full_name":"malgorath/chatbot","owner":"malgorath","description":"Jquery/Flask Socketio Broadcast Chat system","archived":false,"fork":false,"pushed_at":"2023-09-22T15:18:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T13:44:07.891Z","etag":null,"topics":["flask","jquery","python"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malgorath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-20T13:35:39.000Z","updated_at":"2023-09-22T16:16:05.000Z","dependencies_parsed_at":"2025-03-07T19:39:58.984Z","dependency_job_id":null,"html_url":"https://github.com/malgorath/chatbot","commit_stats":null,"previous_names":["malgorath/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malgorath/chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malgorath%2Fchatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malgorath%2Fchatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malgorath%2Fchatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malgorath%2Fchatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malgorath","download_url":"https://codeload.github.com/malgorath/chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malgorath%2Fchatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32704391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","jquery","python"],"created_at":"2025-03-18T02:36:31.494Z","updated_at":"2026-05-06T17:33:30.361Z","avatar_url":"https://github.com/malgorath.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot – Ollama-backed Web UI\n\nA lightweight chat interface built with Python/Flask that connects to a locally-running Ollama server. Inspired by Open WebUI — models are configured via JSON files and selected from the sidebar at runtime.\n\n## Features\n\n- **Multi-model support** — add or swap models by dropping a `.cfg` file into `models/`, no code changes needed\n- **Clean chat UI** — dark-themed interface with a sidebar model selector\n- **Fully local** — all inference runs through your own Ollama server, nothing leaves your machine\n- **Tested** — full pytest suite covering config loading, the Ollama client, and all API routes\n\n## Tech Stack\n\n| Layer | Technology |\n|---|---|\n| Backend | Python / Flask |\n| LLM Integration | Ollama (`/api/chat`) |\n| Frontend | HTML5, CSS3, JavaScript |\n| Tests | pytest, pytest-cov |\n\n## Requirements\n\n- Python 3.10+\n- [Ollama](https://ollama.ai) running locally with at least one model pulled\n- `pip install -r requirements.txt`\n\n## Setup\n\n```bash\ngit clone https://github.com/malgorath/chatbot.git\ncd chatbot\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\nEdit `models/*.cfg` to point to your Ollama host and preferred model. The default config targets `http://192.168.1.3:11434` with `llama3.2:3b`.\n\n## Running\n\n```bash\npython app.py\n```\n\nOpen `http://localhost:5000` — select a model from the sidebar and start chatting.\n\n## Tests\n\n```bash\npytest\npytest --cov=.   # with coverage\n```\n\n## Architecture\n\n```\napp.py                  # Flask routes (GET /, GET /api/models, POST /api/chat)\nollama_client.py        # Ollama API wrapper with error handling\nmodels_config.py        # Parses models/*.cfg into typed ModelConfig objects\ntemplates/chat.html     # Chat UI template\nstatic/css/chat.css     # Styles\nstatic/js/chat.js       # Frontend behaviour\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalgorath%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalgorath%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalgorath%2Fchatbot/lists"}