Skip to content

johnnycage111/groqshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

GroqShell

GroqShell is a command-line interface for interacting with Groq AI models. It allows users to easily send prompts to Groq models and receive responses directly in their terminal.

Features

  • Interact with Groq AI models from the command line
  • Select from available Groq models
  • Option to force JSON output
  • Persistent model selection

Installation

To install GroqShell, follow these steps:

  1. Clone the repository:

    git clone https://github.com/johnnycage111/groqshell.git
    cd groqshell
    
  2. Install the package:

    pip install .
    

Usage

Before using GroqShell, make sure to set your Groq API key as an environment variable:

export GROQ_API_KEY='your-api-key-here'

Basic usage:

groqshell -p "Your prompt here"

Force JSON output:

groqshell -p "Your prompt here" -j

Select a different Groq model:

groqshell -m

Options

  • -p, --prompt: The prompt to send to the Groq AI model (required)
  • -j, --json: Force JSON output
  • -m, --model: Select a Groq model before sending the prompt

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages