Sign inSign up

gshiva/openaictl

By gshiva

•Updated almost 2 years ago

Interactive CLI chatbot for OpenAI ChatGPT https://github.com/homeiac/cyberdeck/tree/main/openaictl

Image
Machine learning & AI
Developer tools
0

4.9K

gshiva/openaictl repository overview

⁠Overview

openaictl is an interactive command-line chatbot designed for seamless interaction with OpenAI's GPT models. Built with Python, it offers context-aware conversations and is fully customizable through environment variables.

This lightweight and Dockerized tool is perfect for developers, AI enthusiasts, and hobbyists looking to leverage OpenAI's capabilities from the terminal.


⁠Key Features
  • Interactive CLI Chatbot: Engage with GPT models in real time.
  • Context-Aware: Maintains chat history for coherent conversations.
  • Customizable: Configure model, token limits, and API key via .env.
  • Multi-Architecture Support: Compatible with x86, ARMv7, and ARM64 architectures.

⁠Usage
  1. Pull the image:

    docker pull gshiva/openaictl:latest
    
  2. Run the chatbot:

    docker run --rm -it --env-file /path/to/.env gshiva/openaictl:latest
    
  3. Configure the .env file:

    OPENAI_API_KEY=<your_openai_api_key>
    MODEL=gpt-3.5-turbo
    MAX_TOKENS=150
    

Tag summary

Content type

Image

Digest

sha256:e77833634…

Size

133.7 MB

Last updated

almost 2 years ago

docker pull gshiva/openaictl