{"id":16778598,"url":"https://github.com/binary-husky/void-terminal","last_synced_at":"2025-07-21T13:34:23.252Z","repository":{"id":184951655,"uuid":"672750577","full_name":"binary-husky/void-terminal","owner":"binary-husky","description":"The CLI \u0026 python API for the well-known project gpt-academic.","archived":false,"fork":false,"pushed_at":"2024-09-22T13:06:56.000Z","size":50,"stargazers_count":19,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T07:40:21.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/binary-husky.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-07-31T04:48:57.000Z","updated_at":"2025-06-03T07:51:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"045889e1-723c-4f18-bb1f-5e82b653fe48","html_url":"https://github.com/binary-husky/void-terminal","commit_stats":null,"previous_names":["binary-husky/void-terminal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binary-husky/void-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fvoid-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fvoid-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fvoid-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fvoid-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binary-husky","download_url":"https://codeload.github.com/binary-husky/void-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fvoid-terminal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266312135,"owners_count":23909744,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-13T07:28:10.312Z","updated_at":"2025-07-21T13:34:23.227Z","avatar_url":"https://github.com/binary-husky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cdiv align=center\u003e Void Terminal\u003c/div\u003e\n\nThe CLI \u0026 python API for the well-known project [`gpt_academic`](https://github.com/binary-husky/gpt_academic.git).\n\n# Installation\n\n1. source installation.\n```\nbash init.bash\n```\n\n2. Pip installation (Not recommended).\n```\npip install void-terminal\n```\n\n# Usage (Commandline)\n\n- Chat\n\n```\nvt -a \"hello, world!\"\n```\n\n- Ask about how to do a linux command\n\n```\nvt -c \"List all docker containers currently running on this system\"\n```\n\n\n- Config (For all possible configurations, read [`config.py`](https://github.com/binary-husky/gpt_academic/blob/master/config.py) in the mother project.)\n```\n# Warning! This will write configuration into .bashrc and change your ENV variables !! Use with caution !! 警告，该命令会修改你的.bashrc文件，持久修改你的环境变量\nvt --set_conf API_KEY \"sk-123456789123456789123456789\"\nvt --set_conf LLM_MODEL \"gpt-3.5-turbo\"\nvt --set_conf DEFAULT_WORKER_NUM \"20\"\n```\n\n\n# Usage (Python API)\n\n- Chat without interaction\n\n```python\nimport void_terminal as vt\n# For more available configurations (including network proxy, api, using chatglm etc.),\n# see config.py of in the mother project:\n# https://github.com/binary-husky/gpt_academic.git\nvt.set_conf(key=\"API_KEY\", value=\"sk-xxxxxxxxxxxxxx\")   # or you can delete this line and set ENV variable\nvt.set_conf(key=\"LLM_MODEL\", value=\"gpt-3.5-turbo\")     # or you can delete this line and set ENV variable\n\nchat_kwargs = vt.get_chat_default_kwargs()\nchat_kwargs['inputs'] = 'Hello, world!'\nresult = vt.get_chat_handle()(**chat_kwargs)\nprint('\\n*************\\n' + result + '\\n*************\\n' )\n```\n\n\n- Using mother project's plugin (Example: translate THIS readme file to Chinese)\n\n```python\nimport void_terminal as vt\nfrom rich.live import Live\nfrom rich.markdown import Markdown\n\n# vt.set_conf(key=\"API_URL_REDIRECT\", value='{\"https://api.openai.com/v1/chat/completions\": \"http://11.22.33.44:5566/v1/chat/completions\"}')\nvt.set_conf(key=\"API_KEY\", value=\"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nvt.set_conf(key=\"LLM_MODEL\", value=\"gpt-3.5-turbo\")\n\nplugin = vt.get_plugin_handle('void_terminal.crazy_functions.Markdown_Translate-\u003eTranslateMarkdownToSpecifiedLanguage')\nplugin_kwargs = vt.get_plugin_default_kwargs()\nplugin_kwargs['main_input'] = './README.md'\nmy_working_plugin = plugin(**plugin_kwargs)\n\nwith Live(Markdown(\"\"), auto_refresh=False) as live:\n    for cookies, chat, hist, msg in my_working_plugin:\n        md_str = vt.chat_to_markdown_str(chat)\n        md = Markdown(md_str)\n        live.update(md, refresh=True)\n```\n\n- Using mother project's plugin (Example: chat with multiple LLM models)\n\n```python\nimport void_terminal as vt\nfrom rich.live import Live\nfrom rich.markdown import Markdown\n\nllm_model = \"gpt-3.5-turbo\u0026gpt-4\"\nvt.set_conf(key=\"API_KEY\", value=\"sk-xxxxxxxxxxxxxx\")\nvt.set_conf(key=\"LLM_MODEL\", value=llm_model)\nplugin = vt.get_plugin_handle('void_terminal.crazy_functions.InquiryMultipleLargeLanguageModels-\u003eSimultaneousInquiry')\nplugin_kwargs = vt.get_plugin_default_kwargs()\nplugin_kwargs['main_input'] = 'Hello, world!'\nplugin_kwargs['plugin_kwargs'] = {\"advanced_arg\": llm_model}\nmy_working_plugin = plugin(**plugin_kwargs)\n\nwith Live(Markdown(\"\"), auto_refresh=False) as live:\n    for cookies, chat, hist, msg in my_working_plugin:\n        md_str = vt.chat_to_markdown_str(chat)\n        md = Markdown(md_str)\n        live.update(md, refresh=True)\n```\n\n# Advanced Settings with Environment Variables\n\n1. `SHOW_VOID_TERMINAL_LOGS`. Set this Environment Variable to display void terminal logs\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-husky%2Fvoid-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinary-husky%2Fvoid-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-husky%2Fvoid-terminal/lists"}