Command-line interface for OpenAI ChatGPT
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
CliAI
CliAI is a user-friendly Python package that lets you interact with OpenAI's ChatGPT via a command-line interface (CLI). Easily test and prototype chatbots, language models, and innovative ideas without writing any code.
Installation
Install CliAI using pip:
pip install cliai
CliAI requires Python 3.8 or higher.
Usage and Tips
Start an interactive conversation by running:
cliai chat
The CLI will guide you through the process to create a configuration.
You can also specify an API key by setting the environment variable export OPENAI_API_KEY="your-key" or by using the --api-key <OPENAI_API_KEY> flag.
Bypass OpenAI Restrictions
In certain regions (e.g., China), connecting to OpenAI may be problematic.
Bypass these restrictions by changing the official API base URL to a custom one using the --api-base flag.
cliai chat --api-base <OPENAI_API_BASE>
Make it portable
You can use Linux on your mobile device to install CliAI.
For iOS & iPadOS, use iSH.
Prompt Injection
During chat mode, you can easily modify messages. In addition to changing your own input (user), you can tweak the model's response (assistant) and system prompt (system) to guide the conversation as desired.
Also you can use fine-tuning parameters to adjust the model's behaviour.
Experiment and enjoy hacking the model!
Debugging
--verbose: Enable verbose output for easier debugging.
--stream: Enable stream output in the response (experimental).
License
CliAI is distributed under the MIT license. See LICENSE for more information.
To contribute to this project, feel free to raise issues or submit code.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cliai-0.2.9.tar.gz.
File metadata
- Download URL: cliai-0.2.9.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.9.11 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dd8ca13b8992e5dc1f1b01d7df90806f3c6d4d81881ac98633e9984efbac086
|
|
| MD5 |
f14f4a36610380e2aad219b4a3701d4b
|
|
| BLAKE2b-256 |
492eb024071dae73a1f44fc7ec35d6bee15ac0d0511aa63338aef54b09b2201c
|
File details
Details for the file cliai-0.2.9-py3-none-any.whl.
File metadata
- Download URL: cliai-0.2.9-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.9.11 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5abe3ab0b4562bacc3ac3acc4f0dd9a0dd532454e1770ce84d9459e1d5466de
|
|
| MD5 |
e957ed75a89efa4e8c58143c6852f244
|
|
| BLAKE2b-256 |
6f77c7492d6da35595034e0f1b7523a4272a0d2abffc74e51b10ed48210c9cc2
|