Coder Social home page Coder Social logo

penny's Introduction

Penny

Penny is a CLI tool for working with Large Language Models (LLMs) using OpenAI's API. It allows users to execute predefined prompts stored in the instructions folder.

Features

  • Execute prompts from the instructions folder.
  • Search for available prompts.
  • Pass input data to prompts via command-line or stdin.

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Usage

Command-line Options

  • -s, --search: Search for prompts in the instructions folder.
  • -i, --input: The name of the prompt to execute.
  • --input_data: The input data to pass to the prompt.

Examples

Search for Prompts

To search for prompts in the instructions folder, use the -s or --search flag:

python penny.py -s

Execute a Prompt

penny -i example_prompt --input_data "Example input data"

You can also pass input data via stdin:

echo "Example input data" | penny -i example_prompt

Project Structure

  • src/: Contains the main source code for the CLI tool.
  • instructions/: Contains the prompt files.
  • penny.egg-info/: Contains metadata about the project.
  • requirements.txt: Lists the dependencies required for the project.
  • setup.py: Script for setting up the project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Joseph Blazick - [email protected]

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

penny's People

Contributors

blazickjp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.