{"id":17724311,"url":"https://github.com/zutto/python-chatgpt-vimbackend","last_synced_at":"2025-03-31T13:55:15.743Z","repository":{"id":174260683,"uuid":"651669802","full_name":"zutto/python-chatgpt-vimbackend","owner":"zutto","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-18T08:17:48.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T08:33:42.362Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zutto.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-06-09T19:17:42.000Z","updated_at":"2023-06-09T19:19:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd5a1728-9047-42e1-be93-37169b108504","html_url":"https://github.com/zutto/python-chatgpt-vimbackend","commit_stats":null,"previous_names":["zutto/python-chatgpt-vimbackend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zutto%2Fpython-chatgpt-vimbackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zutto%2Fpython-chatgpt-vimbackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zutto%2Fpython-chatgpt-vimbackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zutto%2Fpython-chatgpt-vimbackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zutto","download_url":"https://codeload.github.com/zutto/python-chatgpt-vimbackend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246477415,"owners_count":20783996,"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":[],"created_at":"2024-10-25T15:46:29.668Z","updated_at":"2025-03-31T13:55:15.683Z","avatar_url":"https://github.com/zutto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![asciicast](https://asciinema.org/a/035L1ULYfEgXFkXsWBdE6Fjeh.svg)](https://asciinema.org/a/035L1ULYfEgXFkXsWBdE6Fjeh)\n\ndemo backend for this: https://github.com/zutto/gpt.vim\n\nyou can try this manually by running:\n```\ncat test.json | ./main.py\n```\n\n# Make\ninstall requirements\n```\nmake deps\n````\n(or python -m pip install -r requirements.txt)\n\n\ncopy files to $PATH:\n```\nsudo make\n```\n\nAdd variables to $env - examples below.\n```\n# Username and password are optional, but you must use api key without them.\nOPENAI_USER=\u003cEMAIL\u003e\nOPENAI_PASSWORD=\n\n#OPENAI api key\nCHATGPT_API_KEY=\n\n#paid flag for chatgpt\nOPENAI_PAID=\u003cany value = true, omit = false\u003e\n\n#base url for your openai or similar compatible service - see localai for example.\nCHATGPT_BASE_URL=http://localhost:8080/\n```\n\nExample use on chatgpt generated code to tidy it:\n[![asciicast](https://asciinema.org/a/Bn4VZP9qp2s2BerHj3TUmkiFE.svg)](https://asciinema.org/a/Bn4VZP9qp2s2BerHj3TUmkiFE)\n[![asciicast](https://asciinema.org/a/596676.svg)](https://asciinema.org/a/596676)\nAt exit, this will also clean up the conversation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzutto%2Fpython-chatgpt-vimbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzutto%2Fpython-chatgpt-vimbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzutto%2Fpython-chatgpt-vimbackend/lists"}