{"id":13478711,"url":"https://github.com/phguo/AskGPT","last_synced_at":"2025-03-27T08:31:00.263Z","repository":{"id":149988242,"uuid":"618958269","full_name":"phguo/AskGPT","owner":"phguo","description":"AskGPT: an Alfred Workflow that enables you to ask ChatGPT from anywhere while typing.","archived":false,"fork":false,"pushed_at":"2024-03-02T17:20:32.000Z","size":23107,"stargazers_count":141,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T12:47:48.798Z","etag":null,"topics":["alfred-workflow","chatgpt"],"latest_commit_sha":null,"homepage":"","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/phguo.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}},"created_at":"2023-03-25T20:55:56.000Z","updated_at":"2024-10-16T04:49:26.000Z","dependencies_parsed_at":"2023-05-11T09:31:18.332Z","dependency_job_id":null,"html_url":"https://github.com/phguo/AskGPT","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phguo%2FAskGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phguo%2FAskGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phguo%2FAskGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phguo%2FAskGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phguo","download_url":"https://codeload.github.com/phguo/AskGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245809676,"owners_count":20676033,"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":["alfred-workflow","chatgpt"],"created_at":"2024-07-31T16:02:01.349Z","updated_at":"2025-03-27T08:30:55.252Z","avatar_url":"https://github.com/phguo.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# AskGPT\n\n\u003ca href=\"https://www.producthunt.com/posts/askgpt-an-alfred-workflow?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-askgpt\u0026#0045;an\u0026#0045;alfred\u0026#0045;workflow\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=385969\u0026theme=light\" alt=\"AskGPT\u0026#0058;\u0026#0032;An\u0026#0032;Alfred\u0026#0032;Workflow - Ask\u0026#0032;ChatGPT\u0026#0032;from\u0026#0032;anywhere\u0026#0032;while\u0026#0032;typing | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /\u003e\u003c/a\u003e\n\nThis is an **Alfred Workflow** that enables you to ask **ChatGPT** from anywhere while typing. With this Workflow, you can activate it in any window just by typing `\\\\gpt`, and it will swiftly generate the content you desire based on your commands. It's like having a genie in a bottle that instantly fulfills your commands!\n\n---\n\n\u003cimg src=\"https://user-images.githubusercontent.com/10487750/227745921-6d163359-f660-4ec7-9856-dd67dd8a8034.png\"  width=\"30%\" height=\"30%\" alt=\"A man with his feet on the table, looking at automatically generated program code, cyberpunk\"\u003e\n\nby DALL·E *\"A man with his feet on the table, looking at automatically generated program code, cyberpunk\"*\n\n## Getting Start\n\n- Make sure you are using **Alfred 5** (Try [v0.5](https://github.com/phguo/AskGPT/releases/tag/v0.5) if you use Alfred 4).\n- Make sure Alfred 5 has been granted in \"System Preferences -\u003e Security \u0026 Privacy -\u003e Privacy Tab -\u003e Accessibility\".\n- Download and install \"AskGPT\" from https://github.com/phguo/AskGPT/releases.\n- Set the required Environment Variables (click the top-right [x] icon):\n  - `API_KEY`: obtain one from https://platform.openai.com/account/api-keys.\n  - `PYTHON_ENV`: it will be like `/Users/\u003cuser_name\u003e/miniconda3/bin/python` if you follow the following steps.\n      - Install Python from https://docs.conda.io/en/latest/miniconda.html.\n      - Install the required Python packages by `pip install openai==1.13.3 keyboard==0.13.5 pyperclip==1.8.2`.\n  - `API_BASE`: it will be like https://..**/v1 write your own openai api proxy url(default:https://api.openai.com/v1)\n- To make `\\\\gpt` work, see [#6](https://github.com/phguo/AskGPT/issues/6#issuecomment-1509431313).\n\n__* This project has only been tested on macOS Monterey 12.6.3.__ Please feel free to report any issues such as bugs or feature recommendations.\n\n## Knwon issues\n\n- Does not work on macOS Ventura ([#8](https://github.com/phguo/AskGPT/issues/8)).\n\n## Usage\n\n\u003cimg src=\"https://github.com/phguo/AskGPT/blob/main/video/alfred.png\"  width=\"60%\" height=\"60%\"\u003e\n\n\nYou can access the Workflow by Alfred keyword `gpt` or typing `\\\\gpt` anywhere. The following are some use cases.\n\nLet AskGPT write an email for you:\n\n![email](https://github.com/phguo/AskGPT/blob/main/video/email.gif)\n\nLet AskGPT write code for you:\n\n![hello](https://github.com/phguo/AskGPT/blob/main/video/hello.gif)\n\nLet AskGPT check grammar errors (from clipboard) for you:\n\n![grammar](https://github.com/phguo/AskGPT/blob/main/video/grammar.gif)\n\n## Changelog\n\n[v0.6.1](https://github.com/phguo/AskGPT/releases/tag/v0.6.1) - Apr. 4, 2023\n  - Fix [#5](https://github.com/phguo/AskGPT/issues/5) that are related to the roles parser.\n  - Add a configuration for printing user-inputted content.\n\n[v0.6](https://github.com/phguo/AskGPT/releases/tag/v0.6) - Apr. 2, 2023\n\n\u003cimg src=\"https://raw.githubusercontent.com/phguo/AskGPT/main/video/v0.6_User_Configuration.png\"  width=\"70%\" height=\"70%\"\u003e\n\n  - Support context.\n  - Support user defined `model` and `temprature`.\n  - Support user defined `roles`.\n  - Move configuration except `API_KEY` and `PYTHON_ENV` to Alfred 5's [User Configuration](https://www.alfredapp.com/help/workflows/user-configuration/) page.\n\n[v0.5](https://github.com/phguo/AskGPT/releases/tag/v0.5) - Mar. 26, 2023\n  - The first release.\n  - Activate by Alfred keyword `gpt`.\n  - Activete by typing `\\\\gpt` anywhere.\n  - Access clipbord content by \"`clip`\".\n\n## TODO\n\n- [ ] Detect invalid configuration\n- [ ] Automaticly update of the Workflow\n- [ ] Terminate output when the window you are using is changed\n- [x] **[v0.6](https://github.com/phguo/AskGPT/releases/tag/v0.6)**, Preserve context (number of problems, delay in time, manually release, suggested by [tommyxps](https://www.v2ex.com/t/927205#r_12870341))\n- [x] **[v0.6](https://github.com/phguo/AskGPT/releases/tag/v0.6)**, Save customized prompt (suggested by [tommyxps at Product Hunt](https://www.producthunt.com/posts/askgpt-an-alfred-workflow?comment=2314975))\n\n## License\n\nThis project is licensed under the MIT License, see the [LICENSE](https://github.com/phguo/AskGPT/blob/main/LICENSE) file for details.\n\n## Acknowledgments\n\n- This project was inspired by [AnyGPT](https://www.producthunt.com/posts/anygpt).\n- The predefined role `*polish: Revise the following sentences to make them more clear, concise, and coherent.` was designed by [reycn](https://github.com/yetone/bob-plugin-openai-polisher/pull/2) for [yetone/bob-plugin-openai-polisher](https://github.com/yetone/bob-plugin-openai-polisher).\n\n---\n\n☕️ Consider buy me a coffee if you find it helpful: https://guoph.gumroad.com/l/askgpt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphguo%2FAskGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphguo%2FAskGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphguo%2FAskGPT/lists"}