{"id":14711758,"url":"https://github.com/mikrl/django-llm","last_synced_at":"2026-01-14T07:58:46.489Z","repository":{"id":147938728,"uuid":"618150226","full_name":"mikrl/django-llm","owner":"mikrl","description":"A reusable django app for large language model workflows","archived":false,"fork":false,"pushed_at":"2023-03-30T02:25:40.000Z","size":51,"stargazers_count":69,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-10T16:56:27.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mikrl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-23T21:20:56.000Z","updated_at":"2025-07-19T08:44:14.000Z","dependencies_parsed_at":"2023-07-02T21:00:59.870Z","dependency_job_id":null,"html_url":"https://github.com/mikrl/django-llm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikrl/django-llm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikrl%2Fdjango-llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikrl%2Fdjango-llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikrl%2Fdjango-llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikrl%2Fdjango-llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikrl","download_url":"https://codeload.github.com/mikrl/django-llm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikrl%2Fdjango-llm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-09-13T17:00:41.564Z","updated_at":"2026-01-14T07:58:46.484Z","avatar_url":"https://github.com/mikrl.png","language":"Python","funding_links":[],"categories":["LLMs","Python"],"sub_categories":[],"readme":"[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3112/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Django LLM\nAn app for Django to aid development of large language model (LLM) workflows.\n\nHave you ever wanted to store ChatGPT queries in your database? Now you can.\n\nPowered by [langchain](https://github.com/hwchase17/langchain)\n\n\n* [Wiki](https://github.com/mikrl/django-llm/wiki)\n* [Sample Project](https://github.com/mikrl/django-llm-sample)\n\n# Information\nConfigure your LLM workflow from Django.\n\nBuild a business layer for your LLM application.\n\n## Install latest binary\n```bash\npip install django-llm\n```\n\n## Build and install from source\n```bash\n./build.sh\npip install dist/*.whl\n```\n\n# Tests (Stabilizing)\n```bash\npip install -r static.txt\n./static.sh\npytest tests/\n```\n\n# Features\n## Run ChatGPT queries through Django shell and model code\n```bash\n$ docker build -t django_llm .  \n$ docker run -it django_llm\n\u003e\u003e\u003e \n\u003e\u003e\u003e from llm.models.prompts import Prompt\n\u003e\u003e\u003e prompt = Prompt(template = \"Give a bombastic and raucous 'Hello, {name}' to the user\")\n\u003e\u003e\u003e prompt.save()\n\u003e\u003e\u003e Prompt.objects.all()\n\u003cQuerySet [\u003cPrompt: Prompt object (1)\u003e]\u003e\n\u003e\u003e\u003e prompt.template\n\"Give a bombastic and raucous 'Hello, {name}' to the user\"\n\u003e\u003e\u003e prompt.variables\n['name']\n\u003e\u003e\u003e\n\u003e\u003e\u003e from llm.models import ModelProviderAPI\n\u003e\u003e\u003e openai = ModelProviderAPI(service = 'OpenAI', api_key = '\u003c\u003c\u003cYOUR OPENAI API KEY\u003e\u003e\u003e')\n\u003e\u003e\u003e openai.save()\n\u003e\u003e\u003e openai.service\n'OpenAI'\n\u003e\u003e\u003e\n\u003e\u003e\u003e from llm.models.queries import OpenAIChatQuery\n\u003e\u003e\u003e query = OpenAIChatQuery(prompt = prompt, api = openai)\n\u003e\u003e\u003e query.do_query(name=\"World\")\n\"HELLO WORLD! WELCOME TO THE MIGHTY REALM OF TECHNOLOGY AND INNOVATION! PREPARE TO BE ASTOUNDED AND DAZZLED BY THE POWER OF CODE AND THE ENDLESS POSSIBILITIES OF THE DIGITAL AGE! LET'S ROCK AND ROLL!\"\n\u003e\u003e\u003e\n```\n\n## More\n* Model to configure and execute ChatGPT query\n* Model to hold prompt and determine prompt variables\n* Model to store API keys for various services\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikrl%2Fdjango-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikrl%2Fdjango-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikrl%2Fdjango-llm/lists"}