<p align="center">
<img width="180" src="https://avatars.githubusercontent.com/u/127706964?s=200&v=4" alt="LLMApi Cli">
<h1 align="center">LLMApi Cli</h1>
<p align="center">Talk to LLMs like ChatGPT in command line</p>
</p>
# Introduction
[中文文档](README.zh.md)
`llmapi_cli` is a command-line tool that can directly chat with `chatgpt`/`gpt3` and more large language models(LLM), based on the `llmapi-server` interface.
At the same time llmapi_cli also provides Python module (`LLMClient`).
> For more information visit: [llmapi.io](https://llmapi.io)
## Install
```bash
# install from pypi
python3 -m pip install llmapi_cli
```
```bash
# install locally
python3 setup.py install
```
## Usage
```bash
# The first time you use this command,
# you need to specify parameters, this
# will be cached after successful connection.
#
# If you use your own llmapi-server:
llmapi_cli --host='http://127.0.0.1:5050' --bot=mock
#
# If you use api.llmapi.io (which is default host):
llmapi_cli --bot=mock --apikey='your apikey on llmapi.io'
```
```bash
# You can directly use this command again:
llmapi_cli
#
# Or change the bot type:
llmapi_cli --bot=gpt3
#
# Or redesignate params like first time.
```
### Screenshot
![image](imgs/llmapi_cli_demo.png)
# Currently supported bot type
> View [llmapi-server](https://github.com/llmapi-io/llmapi-server) for more information.
Warning: Currently for testing only
- `chatgpt`: openai's official ChatGPT,[see more](https://openai.com/blog/introducing-chatgpt-and-whisper-apis)
- `gpt3`: openai's official GPT-3
- `welm`: Tencent weixin's llm,[see more](https://welm.weixin.qq.com/docs/introduction/)
- `newbing`: microsoft's new bing chat, `UNOFFICIAL INTERFACE`
Raw data
{
"_id": null,
"home_page": "https://llmapi.io/",
"name": "llmapi-cli",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "LLM OpenAPI LargeLanguageModel GPT3 ChatGPT Embedding",
"author": "llmapi",
"author_email": "llmapi@163.com",
"download_url": "https://files.pythonhosted.org/packages/73/bc/2f14eb55e45099491e371eeac53eb948d2e7efc958a1b6c3d8e1bfa8854b/llmapi_cli-1.1.1.tar.gz",
"platform": "any",
"description": "<p align=\"center\">\n <img width=\"180\" src=\"https://avatars.githubusercontent.com/u/127706964?s=200&v=4\" alt=\"LLMApi Cli\">\n <h1 align=\"center\">LLMApi Cli</h1>\n <p align=\"center\">Talk to LLMs like ChatGPT in command line</p>\n\n</p>\n\n# Introduction\n\n[\u4e2d\u6587\u6587\u6863](README.zh.md)\n\n`llmapi_cli` is a command-line tool that can directly chat with `chatgpt`/`gpt3` and more large language models(LLM), based on the `llmapi-server` interface.\nAt the same time llmapi_cli also provides Python module (`LLMClient`).\n\n> For more information visit: [llmapi.io](https://llmapi.io)\n\n## Install\n\n```bash\n# install from pypi\npython3 -m pip install llmapi_cli\n```\n\n```bash\n# install locally\npython3 setup.py install\n```\n\n## Usage\n\n```bash\n# The first time you use this command,\n# you need to specify parameters, this \n# will be cached after successful connection.\n#\n# If you use your own llmapi-server:\nllmapi_cli --host='http://127.0.0.1:5050' --bot=mock\n#\n# If you use api.llmapi.io (which is default host):\nllmapi_cli --bot=mock --apikey='your apikey on llmapi.io'\n```\n\n```bash\n# You can directly use this command again:\nllmapi_cli\n#\n# Or change the bot type:\nllmapi_cli --bot=gpt3\n#\n# Or redesignate params like first time.\n```\n\n### Screenshot\n![image](imgs/llmapi_cli_demo.png)\n\n# Currently supported bot type\n\n> View [llmapi-server](https://github.com/llmapi-io/llmapi-server) for more information.\n\nWarning: Currently for testing only\n\n - `chatgpt`: openai's official ChatGPT,[see more](https://openai.com/blog/introducing-chatgpt-and-whisper-apis)\n - `gpt3`: openai's official GPT-3\n - `welm`: Tencent weixin's llm,[see more](https://welm.weixin.qq.com/docs/introduction/)\n - `newbing`: microsoft's new bing chat, `UNOFFICIAL INTERFACE`\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Do you want to talk directly to the LLMs? Try llmapi.",
"version": "1.1.1",
"split_keywords": [
"llm",
"openapi",
"largelanguagemodel",
"gpt3",
"chatgpt",
"embedding"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "22549a5343b40c8e24543be9d563c459f7215507401e94b1f14a71df63f09dfa",
"md5": "24291956e7cdb6c1141768a35caacbce",
"sha256": "0d1ad5c0454ed2bc3954be8c22141a3e742197338d0c181be30ac7639c2259be"
},
"downloads": -1,
"filename": "llmapi_cli-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24291956e7cdb6c1141768a35caacbce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7492,
"upload_time": "2023-04-05T15:10:35",
"upload_time_iso_8601": "2023-04-05T15:10:35.156425Z",
"url": "https://files.pythonhosted.org/packages/22/54/9a5343b40c8e24543be9d563c459f7215507401e94b1f14a71df63f09dfa/llmapi_cli-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "73bc2f14eb55e45099491e371eeac53eb948d2e7efc958a1b6c3d8e1bfa8854b",
"md5": "0d93d06541bafb996e0fdcc42dbee3c7",
"sha256": "c9a992c9cc4cea0e9949cada87477c5c93cf0e8471736714a969c6462eaf9568"
},
"downloads": -1,
"filename": "llmapi_cli-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "0d93d06541bafb996e0fdcc42dbee3c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6953,
"upload_time": "2023-04-05T15:10:36",
"upload_time_iso_8601": "2023-04-05T15:10:36.889386Z",
"url": "https://files.pythonhosted.org/packages/73/bc/2f14eb55e45099491e371eeac53eb948d2e7efc958a1b6c3d8e1bfa8854b/llmapi_cli-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-05 15:10:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "llmapi-cli"
}