A Python-based CLI tool to quickly interact with OpenAIs GPT models instead of relying on the web interface.
Project description
qprom
A Python-based CLI tool to quickly interact with OpenAI's GPT models instead of relying on the web interface.
Table of Contents
Description
qprom is a small project that lets you interact with OpenAI's GPT-4 and 3.5 chat API, quickly without having to use the web-ui. This enables quicker response times and better data privacy
Installation
pip install qprom
Usage
Argument | Type | Default | Choices | Description |
---|---|---|---|---|
-p |
String | None | None | Option to directly enter your prompt |
-m |
String | gpt-4 |
gpt-3.5-turbo , gpt-4 |
Option to select the model |
-t |
Float | 0.3 |
Between 0 and 2 |
Option to configure the temperature |
-v |
Boolean | False |
None | Enable verbose mode |
Usage
qprom -p <prompt> -m <model> -t <temperature> -v
<prompt>
: Replace with your prompt<model>
: Replace with eithergpt-3.5-turbo
orgpt-4
<temperature>
: Replace with a float value between0
and2
-v
: Add this flag to enable verbose mode
For example:
qprom -p "Translate the following English text to French: '{text}'" -m gpt-4 -t 0.7 -v
This will run the script with the provided prompt, using the gpt-4
model, a temperature of 0.7
, and verbose mode enabled.
Todos
- Testing
- Create and add logo
- Update readme
- Add conversation mode
- Add option to select default model in config
- Add option to disable streaming and only print the full response
Bug reports:
License
MIT Link
Support me :heart: :star: :money_with_wings:
If this project provided value, and you want to give something back, you can give the repo a star or support by buying me a coffee.
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.