{"id":30788546,"url":"https://github.com/hakdogan/jollama","last_synced_at":"2026-04-17T04:34:19.398Z","repository":{"id":312613673,"uuid":"1046970716","full_name":"hakdogan/jollama","owner":"hakdogan","description":"Ollama Java client. This project shows you how to configure models and manage the request-response cycle in pure Java.","archived":false,"fork":false,"pushed_at":"2025-09-01T16:31:58.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-25T14:58:47.186Z","etag":null,"topics":["ollama","ollama-client"],"latest_commit_sha":null,"homepage":"","language":"Java","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/hakdogan.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T14:22:23.000Z","updated_at":"2025-09-01T16:32:02.000Z","dependencies_parsed_at":"2025-08-31T22:34:09.125Z","dependency_job_id":"d18d401b-40c2-4f98-bf1f-6b7194f634ff","html_url":"https://github.com/hakdogan/jollama","commit_stats":null,"previous_names":["hakdogan/jollama"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hakdogan/jollama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fjollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fjollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fjollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fjollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakdogan","download_url":"https://codeload.github.com/hakdogan/jollama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakdogan%2Fjollama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ollama","ollama-client"],"created_at":"2025-09-05T13:14:04.382Z","updated_at":"2026-04-17T04:34:19.385Z","avatar_url":"https://github.com/hakdogan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jollama\n\n`Ollama` is a lightweight, extensible framework for building, running, and chatting with large language models (LLMs) locally on your machine. This project demonstrates how to integrate with Ollama's API, manage model configurations via `Modelfiles`, and maintain conversation context across chat sessions.\n\n\n## Features\n\n- **Ollama API Integration:** Communicate seamlessly with your local Ollama server\n\n- **Modelfile Support:** Load and manage custom model configurations\n\n- **Context Awareness:** Maintain conversation context across requests for coherent multi-turn dialogues\n\n- **Interactive Console Chat:** Simple console interface for testing and demonstration\n\n- **Standalone Java Application:** No external dependencies beyond the Ollama server\n\n## Prerequisites\n\n- Java 17 or higher\n- Ollama installed on your system\n- At least one model pulled via Ollama _(e.g., ollama pull mistral)_\n\n## Installation\n\nClone this repository:\n\n```bash\ngit clone https://github.com/hakdogan/jollama\ncd jollama\n```\n\nCreate an executable Jar file:\n\n```bash\njavac -d mods --source-path \"./src/*\" \\                                                                                     ✔  22  \n$(find . -name \"*.java\")\n\ncd mods/\n\njar cvmf ../manifest.txt jollama.jar .  \n```\n\nor\n\n```bash\nsh compile.sh\n```\n\n\n## Usage\n\n```bash\njava -jar jollama.jar\n```\n\nor\n\n```bash\nsh run.sh\n```\n\nTo list local models, you can type **models** after the following message is displayed in the console\n\n```bash\nBefore you begin, please specify the model you want to use.\n(Type \"models\" to list local models)\n\nmodels\n\ngpt-oss\nqwen2.5\nphi3.5\nphi3\nall-minilm\nqwen3\nnomic-embed-text\nllava\nqwen2.5\nllama3.2\nqwen2.5\nmistral\n\nPlease specify the model you want to use.\n```\nIf you want to configure a model, you must provide the **model name** and **model file path**\n\n```bash\njava -jar jollama.jar java-expert src/main/resources/Modelfile\n\ngathering model components \nusing existing layer sha256:ff82381e2bea77d91c1b824c7afb83f6fb73e9f7de9dda631bcdbca564aa5435 \nusing existing layer sha256:43070e2d4e532684de521b885f385d0841030efa2b1a20bafb76133a5e1379c1 \nusing existing layer sha256:491dfa501e59ed17239711477601bdc7f559de5407fbd4a2a79078b271045621 \nusing existing layer sha256:69525e015f87b01e2746a48e53866575cc5f0a371d3dbce438be557a83713b0c \nusing existing layer sha256:85b5c07d0bb2f5fff04c0d8fdaaeb698686fcd155220c9ce7a65913111b043ee \nwriting manifest \nsuccess \n\nModel created successfully: java-expert\nBefore you begin, please specify the model you want to use.\n(Type \"models\" to list local models)\n\njava-expert\n\nAsk anything. Type exit to exit!\nWhat is Java?\n\nJava is a programming language. It was designed by Sun Microsystems in 1995...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakdogan%2Fjollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakdogan%2Fjollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakdogan%2Fjollama/lists"}