Sign inSign up

jcomte23/prompt-cli

By jcomte23

Updated 7 months ago

PromptCLI is a Python console application that allows interaction with OpenAI's LLM.

Image
Data science
Web analytics
0

210

jcomte23/prompt-cli repository overview

🤖 PromptCLI

Chat with an LLM from the terminal using Python.

PromptCLI is a console application that allows you to interact with an OpenAI language model from the terminal, keeping conversation history and featuring an enhanced visual interface using rich.


🚀 Features

  • Interactive console chat with real-time responses (streaming)
  • Markdown rendering directly in the terminal 📝
  • Conversation history (persistent context within the session)
  • Enhanced interface with colors and panels (rich) 🎨
  • Resilient error handling (doesn't crash on connection failure) 🛡️
  • Environment variables support (.env) 🔐
  • Dockerized 🐳
  • Basic modular architecture 🏗️

🧱 Tech Stack

  • Python 3.12
  • OpenAI API KEY (Required)
  • Docker

From Docker Hub:

docker pull jcomte23/prompt-cli:v1.0.1
docker run -it -e OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxx jcomte23/prompt-cli:v1.0.1

Author

This project was created by Javier Cómbita Téllez.

If you have any questions or comments about the project, you can contact Javier at

[email protected] .

Tag summary

Content type

Image

Digest

sha256:649c7f1a7

Size

51 MB

Last updated

7 months ago

docker pull jcomte23/prompt-cli:v1.0.1