MIT License

项目介绍

code-yeongyu/AiShell 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 184 个 Star、19 次 Fork。

仓库全名
code-yeongyu/AiShell
开源许可证
MIT License
Star 数
184
Fork 数
19
未关闭 Issue
3

README 摘要

AiShell 🤖 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. Demo Key Features 💡 Interact with your computer using natural language Automatically executes the command from the response of…

完整内容见 GitHub 原始 README 或本页 。

常见问题

AiShell 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 184 个 Star。

AiShell 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 AiShell 的源码?

可以直接克隆仓库:git clone https://github.com/code-yeongyu/AiShell.git,默认分支为 master;安装与运行步骤见仓库 README。

AiShell 最近还在维护吗?

仓库最近一次更新为 2023年10月18日,当前有 3 个未关闭 Issue;Star 数为 184,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

AiShell: A Natural Language Shell like GitHub Copilot X, Powered by ChatGPT

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
226
价值分
116
活跃状态
活跃

语言占比

Python

Release

贡献者

README

AiShell 🤖

codecov Release Package to PyPI PyPI version Downloads

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.

Demo

Demo

Key Features 💡

  • Interact with your computer using natural language
  • Automatically executes the command from the response of ChatGPT
  • Good for complex tasks like handling Git and extracting tar files
  • No need to search StackOverflow for commands, AiShell has got you covered
  • AiShell simplifies the process of setting up and retrieving tokens or API keys.
    • With AiShell, you don’t have to worry about the technical details.
    • Simply install AiShell, execute it, and you’re ready to go!

Prerequisites 📚

  • Python 3.9+
  • ChatGPT Account (or OpenAI Account)

Getting Started 🚀

To begin using AiShell, start by installing it with pip:

pip install aishell

Or you can use pipx:

pipx install aishell

Once 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'

Advanced Settings 🛠

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:

  1. Create an account on OpenAI.
  2. Go to https://platform.openai.com/account/api-keys and copy your API key.
  3. Modify or create the ~/.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.

Contributions 💬

Feel free to contribute to AiShell by adding more functionality or fixing bugs.

评论

暂无评论