{"id":15164782,"url":"https://github.com/im-pramesh10/localprompt","last_synced_at":"2026-01-23T16:36:36.854Z","repository":{"id":249379275,"uuid":"831351367","full_name":"im-pramesh10/LocalPrompt","owner":"im-pramesh10","description":"\"A simple and lightweight client-server program for interfacing with local LLMs using ollama, and LLMs in groq using groq api.\"","archived":false,"fork":false,"pushed_at":"2024-08-08T09:59:26.000Z","size":7793,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T11:37:40.619Z","etag":null,"topics":["ai","aiohttp-server","chat-interface","chatbot","groq","groq-ai","groq-api","groq-integration","javascript","llama","ollama-chat","ollama-client","ollama-interface","python","vanilla-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/im-pramesh10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-20T09:53:16.000Z","updated_at":"2024-11-10T05:04:55.000Z","dependencies_parsed_at":"2024-07-20T11:29:23.434Z","dependency_job_id":"f3d33cd6-e642-42a9-8e5c-de0b540dba5d","html_url":"https://github.com/im-pramesh10/LocalPrompt","commit_stats":{"total_commits":118,"total_committers":2,"mean_commits":59.0,"dds":"0.016949152542372836","last_synced_commit":"fa879ae405679e4c63300bbbb07b5acd2b5ba920"},"previous_names":["im-pramesh10/localprompt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-pramesh10%2FLocalPrompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-pramesh10%2FLocalPrompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-pramesh10%2FLocalPrompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-pramesh10%2FLocalPrompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/im-pramesh10","download_url":"https://codeload.github.com/im-pramesh10/LocalPrompt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794566,"owners_count":21162613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","aiohttp-server","chat-interface","chatbot","groq","groq-ai","groq-api","groq-integration","javascript","llama","ollama-chat","ollama-client","ollama-interface","python","vanilla-js"],"created_at":"2024-09-27T04:00:33.604Z","updated_at":"2026-01-23T16:36:36.807Z","avatar_url":"https://github.com/im-pramesh10.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalPrompt\n\n## Description\nThis project is a simple and lightweight client-server program for interfacing with local LLMs using ollama, and LLMs in groq using groq api.\n\nThis project demonstrates a simple and lightweight client-server program for interfacing with Large Language Models (LLMs) on your local machine using ollama and also interfacing groq using groq api.\n\n![LocalPrompt Screenshot 1](readme-images/image2.png)\n![LocalPrompt Screenshot 2](readme-images/image1.png)\n\n## Prerequisites\n\n- Python 3.7+\n- aiohttp library\n- ollama installed in the system\n\n## Installation\n\n### Clone the Repository\n\n```\ngit clone https://github.com/im-pramesh10/LocalPrompt.git\ncd LocalPrompt/backend\n```\n\n### Create python virtual environment\n\n```\npython -m venv venv\n```\n\nelse\n\n```\npython3 -m venv venv\n```\n\nor\n\n```\nvirtualenv venv\n```\n\n### Activate venv\n\n- For Windows\n\n```\n.\\venv\\Scripts\\activate\n```\n\n- For Linux and MacOs\n\n```\nsource venv/bin/activate\n```\n\n### Install from requirements.txt\n\n```\npip install -r requirements.txt\n```\n\n## Usage\n\n- cd into backend folder\n- Activate the virtual environment and run the following command:\n\n```\npython simple_async_server.py\n```\n\n- navigate to http://localhost:8000 to use the program\n- you can change your default port from setting.py\n- Ensure Ollama is running in the background and the Phi model is pulled. This example uses the Phi model.\n\n## Modifying for Other LLMs\n### For single prompt\nTo connect LocalPrompt setup with a different LLM using Ollama:\n- Write your code inside custom_model_api function inside api_call.py file\n- Return your response in the following format:\n\n```\n{'response':'You need to set up your custom model function inside api_call.py file inside backend folder'}\n```\n\n\u003e [!NOTE]\n\u003e Make sure to restart server after each changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-pramesh10%2Flocalprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fim-pramesh10%2Flocalprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-pramesh10%2Flocalprompt/lists"}