Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmapi_cli-1.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

llmapi_cli-1.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file llmapi_cli-1.1.0.tar.gz.

File metadata

  • Download URL: llmapi_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.12 CPython/3.10.6

File hashes

Hashes for llmapi_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f5f2a244f45a8fa9595edff69145244068f9e42fa04dbf6bf1e94474781cbb00
MD5 5371e394ac6047bfeccd56bb699a5008
BLAKE2b-256 936e2d3682eed5a6aec52ce609c9e8deea39b74131046dae7b56674ea73f1035

See more details on using hashes here.

File details

Details for the file llmapi_cli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: llmapi_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.12 CPython/3.10.6

File hashes

Hashes for llmapi_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1809061711d51c77dff69c673fe63e5eb029c8c319cc60d5f4136eb9563e4161
MD5 1677880cea63d7869b2ad711a52092c9
BLAKE2b-256 25fb1b5c8070c664e694ed3f5d0ad5d2976be73d7c044573a56719e082c43e1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page