Skip to main content

A Python-based CLI tool to quickly interact with OpenAIs GPT models instead of relying on the web interface.

Project description

qprom a.k.a Quick Prompt

OS RunsOn Open Source

qprom

A Python-based CLI tool to quickly interact with OpenAI's GPT models instead of relying on the web interface.

Table of Contents

  1. Description
  2. Installation
  3. Usage
  4. Todos
  5. License

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 either gpt-3.5-turbo or gpt-4
  • <temperature>: Replace with a float value between 0 and 2
  • -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.

Buy Me A Coffee

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

qprom-0.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

qprom-0.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file qprom-0.4.tar.gz.

File metadata

  • Download URL: qprom-0.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for qprom-0.4.tar.gz
Algorithm Hash digest
SHA256 3a1cbf5a08aca2a1a05e580b9bf3c8b06da4f68225820898c7df902303596c69
MD5 0861a8da7e7eff0ec09d43ad6ae83eb0
BLAKE2b-256 fa57c4b650f1d691eca5887947a7b079362d8386c3ca3bafec4aa7c374475af3

See more details on using hashes here.

File details

Details for the file qprom-0.4-py3-none-any.whl.

File metadata

  • Download URL: qprom-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for qprom-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7d8159e788b2fde49625ff1ab9b8da61d6450bdc6dc0d37dc01dc997f0e977d2
MD5 cff4f0acc33d4fa6c634f68105b112b7
BLAKE2b-256 262be2950ef2f0874728f7a80fe4fd7a30bc7275ffe74216b73d7cd2bd44da4d

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