Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

groqcli (groq-tool)

A Modern Command-Line Tool for Interacting with Grog LLMs

Upload Python Package

Table of Contents

Installation

Using pipx (Recommended)

pipx install groq-tool
pipx install git+https://github.com/daisseur/groqcli.git

Using pip

pip install groq-tool

From Source

git clone https://github.com/daisseur/groqcli.git
cd groqcli
pip install .

Usage

Direct Prompt

groqcli chat "Explain black holes in 3 points"

File-Based Prompt

groqcli chat my_file.txt

With Predefined System Prompt

groqcli chat "Transform this script into TypeScript" --system formatScript

Resume Previous Session

groqcli chat --last 1

Saving session and resume them later

groqcli chat --save-session myfile.groq
groqcli chat --load-session myfile.groq

Compatible with --last (it does not save the next answer in another timestamp file)

Commands

  • groqcli: Run the command-line tool
  • groqcli --system <prompt>: Use a predefined system prompt
  • groqcli --save: Save the current conversation
  • groqcli resume: Load a previous conversation
  • groqcli models: List available models
  • groqcli prompts edit: Edit predefined system prompts

Predefined System Prompts

  • uwu: Cute and cheerful tone (UwU)
  • formatScript: Script format only
  • friendly: Friendly and helpful tone
  • tech: Precise and technical explanations
  • json: JSON format only
  • default: Default helpful assistant
  • fr-default: French-speaking helpful assistant

Module groqcli-files (installed by default)

Overview

GroqCLI Files is a module of the GroqCLI ecosystem that allows you to manage and interact with files in a convenient and efficient way. This module provides a set of commands and options that enable you to send multiple files to groq llms.

Examples

  • Get documentations for a directory of API endpoints:

Set up a useful system prompt

groqcli set-system endpointFormat "You have to answer using this format: # {endoint path}\nEach params (both required and optional) * `{params}`: `{type}`"

Run the command

groqcli-files ./APIEndpoints -f ~/Server/Work/Max/HubRP/endpoints.md --system endpointFormat

Usage

To use GroqCLI Files, simply run the groqcli-files command followed by the desired options.

Extensibility

GroqCLI is fully extensible and can be customized to fit your needs. You can add new features, commands, and prompts by modifying the source code.

Troubleshooting

If you encounter any issues or have questions, please open an issue on the GitHub repository


Special thanks to @gmfunk9 for providing the inspiration for this project.

About

A Modern Command-Line Tool for Interacting with Grog LLMs

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages