A simple Python code that connects to OpenAI's ChatGPT and executes the returned results.
If you are interested in these projects, please checkout AiShell's brother project: YGK-a. YGK-a is a client for the ChatGPT from your terminal, and also supports unix/linux pipelines.
AiShell has got you coveredAiShell simplifies the process of setting up and retrieving tokens or API keys.
AiShell, you don't have to worry about the technical details.AiShell, execute it, and you're ready to go!To begin using AiShell, start by installing it with pip:
pip install aishellOr you can use pipx:
pipx install aishellOnce you've installed AiShell, you can start using it right away.
For example, to print "Hello World" using AiShell, enter the following command:
aishell 'print Hello World'By default, AiShell is configured to use the reverse-engineered ChatGPT client and retrieve login information from your browser, so you don't need to configure anything to use AiShell. However, for those who want to use different models with an OpenAI API Key, you can configure it as follows:
~/.ygka_openai_config.json file as follows:{
...
"language_model": "official_chatgpt",
"openai_api_key": "<your OpenAI API key>"
}Here, you can add your OpenAI API key. This will enable AiShell to use the official chatgpt api and the API key when executing commands.
Feel free to contribute to AiShell by adding more functionality or fixing bugs.