Do you want to talk directly to the LLMs? Try llmapi.
Project description
- <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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for llmapi_cli-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d1ad5c0454ed2bc3954be8c22141a3e742197338d0c181be30ac7639c2259be |
|
MD5 | 24291956e7cdb6c1141768a35caacbce |
|
BLAKE2b-256 | 22549a5343b40c8e24543be9d563c459f7215507401e94b1f14a71df63f09dfa |