{"id":26956277,"url":"https://github.com/serhhat/askgpt","last_synced_at":"2025-04-03T03:20:55.335Z","repository":{"id":73338100,"uuid":"604913466","full_name":"serhhat/askgpt","owner":"serhhat","description":"AskGPT is a CLI that allows you to interact with ChatGPT and Dall-E","archived":false,"fork":false,"pushed_at":"2023-09-16T13:18:49.000Z","size":5399,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T15:17:27.396Z","etag":null,"topics":["chatgpt","cli","dall-e","golang","openai"],"latest_commit_sha":null,"homepage":"","language":"Go","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/serhhat.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-02-22T03:25:36.000Z","updated_at":"2024-05-25T01:27:37.000Z","dependencies_parsed_at":"2024-06-21T08:44:00.136Z","dependency_job_id":"3eac97a3-bebd-4e64-872b-4ce5d51a7e79","html_url":"https://github.com/serhhat/askgpt","commit_stats":{"total_commits":153,"total_committers":3,"mean_commits":51.0,"dds":"0.20915032679738566","last_synced_commit":"467ba183758c558c505b81485e551b9e8294ac40"},"previous_names":["serhhatsari/askgpt"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serhhat%2Faskgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serhhat%2Faskgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serhhat%2Faskgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serhhat%2Faskgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serhhat","download_url":"https://codeload.github.com/serhhat/askgpt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246928292,"owners_count":20856268,"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":["chatgpt","cli","dall-e","golang","openai"],"created_at":"2025-04-03T03:20:54.847Z","updated_at":"2025-04-03T03:20:55.317Z","avatar_url":"https://github.com/serhhat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AskGPT  \nAskGPT is a CLI that allows you to interact with ChatGPT and Dall-E models  \n## Description  \nAskGPT is a CLI tool built in Go that allows you to interact with ChatGPT, Dall-E models trained by OpenAI.  \nWith this tool, you can easily ask ChatGPT for help with various tasks, from generating text to images.\n\n## Getting Started  \n### Dependencies  \n* [OpenAI API Key](https://platform.openai.com/account/api-keys)  \n\nYou need to generate an API key and export it as an environment variable:  \n```shell\nexport OPENAI_API_KEY=\u003cyour_api_key\u003e\n```\n\n### Installation and Running\n#### **Via [HomeBrew](https://brew.sh/):**     \nFirst, install the tap:  \n```shell\nbrew install sariserhat/tools/askgpt  \n```\nThen, you can run the executable:  \n```shell\naskgpt \u003ccommand\u003e\n```\n\n#### **Via [Source Code](https://github.com/serhhatsari/askgpt.git):**  \nFirst, clone the repository:  \n```shell\ngit clone https://github.com/serhhatsari/askgpt.git\n```\nThen, build the project:  \n```shell\ngo build cmd/askgpt/main.go\n```\nFinally, you can run the executable:  \n```shell \n./askgpt \u003ccommand\u003e\n```\n\n\n## Usage\n### Command: `askgpt chat`\nStart a chat session with ChatGPT.\n```shell\naskgpt chat [flags]\n```\n#### Examples\n```shell\naskgpt chat # This will start a chat session with ChatGPT  \naskgpt chat -t 0.5 # This will start a chat session with ChatGPT with a temperature of 0.5 \n```\n#### Options\n```\n  -h, --help                  help for chat\n  -t, --temperature float32   Temperature of the model. Higher values will result in more creative completions, but also more likelihood of nonsensical text. Try 0, 0.5, 1.0, 1.5, 2.0\n```\n### Command: `askgpt image`\nCreate an image from a prompt using the Dall-E model.\n```\naskgpt image \u003cyour_prompt\u003e [flags]\n```\n#### Examples\n```shell\naskgpt image \"A drawing of a cat.\"  \naskgpt image \"Dog is driving a car.\" -s 1024  \n```\n#### Options\n```\n  -h, --help       help for image\n  -s, --size int   Size of the image to generate. Try 256, 512, 1024 (default 512)\n```\n\n## Demo\n### Chat with GPT-4\n```shell\naskgpt chat [flags]\n```  \n\u003cdiv\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/serhhatsari/askgpt/master/assets/chatusage.gif\"/\u003e\n\u003c/div\u003e\n\n### Generate an image with Dall-E\n```shell\naskgpt image \u003cyour_prompt\u003e\n```\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/serhhatsari/askgpt/master/assets/imageusage.gif\"/\u003e\n\u003c/div\u003e  \n\n## Contributions\nContributions to AskGPT are always welcome! If you find a bug or have an idea for a new feature, feel free to submit a pull request or open an issue on the GitHub repository.\n\n## License\nAskGPT is open-source software licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserhhat%2Faskgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserhhat%2Faskgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserhhat%2Faskgpt/lists"}