cligpt-2.7.2
توضیحات
A handy CLI interface for ChatGPT
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cligpt-2.7.2 |
| نام | cligpt |
| نسخه کتابخانه | 2.7.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | skvn |
| ایمیل نویسنده | xxx@gmail.com |
| آدرس صفحه اصلی | http://www.example.com/~cschultz/bvote/ |
| آدرس اینترنتی | https://pypi.org/project/cligpt/ |
| مجوز | - |
# Command Line Inferface for ChatGPT
### Installation
```shell
pip install --upgrade cligpt
```
### Getting Started
```shell
# Fill in your OpenAI API key
export OPENAI_API_KEY=[sk-xxxx]
# Launch
cligpt
# Switch roles (you may use abbreviations as long as they do not clash with other roles)
@revise (or @revis | @revi | @rev | @re | @r)
```
### Advanced Options
- Customize your roles
Edit the configuration file:
```
vim ~/.cligpt/config.json
```
- Turn on/off Auto-copy (default=on)
`cligpt` automatically copies the last response to your clipboard. To enable/disable it, launch `cligpt` with the following command:
```
cligpt --no_auto_copy
```
- Adjust context length (default=6)
Context length refers to the number of prompts+responses `cligpt` should remember. For example, if you want it to remember the last 3 prompts + 3 responses, launch `cligpt` with the following command:
```
cligpt --context_length=6
```
- Turn on/off stream mode (default=on)
Stream mode displays words popping up one by one. To enable/disable it, launch `cligpt` with the following command:
```
cligpt --no_stream
```
- Proxy (default=None)
Use a proxy for the OpenAI API:
```
cligpt --proxy=http:127.0.0.1:9000
```
### Uninstallation
```shell
pip uninstall cligpt
(rm -rf ~/.cligpt)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | openai |
| - | rich |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cligpt-2.7.2:
pip install cligpt-2.7.2.whl
نصب پکیج tar.gz cligpt-2.7.2:
pip install cligpt-2.7.2.tar.gz