Skip to content

seemywingz/ponder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ponder

OpenAI Powered Chat Tool

main

Install

go install github.com/seemywingz/ponder

Usage

Setup Your Environment

The OpenAI API uses API keys for authentication.
Visit your API Keys page to retrieve the API key you'll use in your requests.

Required Environment Variables

ℹ️ These Environment Variables are required for both docker and cli usage
ℹ️ You can omit keys for unused API endpoints
OPENAI_API_KEY={YOUR OPENAI API KEY}
DISCORD_API_KEY={YOUR DISCORD BOT API KEY}

Ponder a single thought

CLI

ponder "What is AI"

Docker

Running ponder in docker is exactly the same, but you have to provide the env vars when running

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY  ghcr.io/seemywingz/ponder:latest "What is AI"

or

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e DISCORD_API_KEY=$DISCORD_API_KEY ghcr.io/seemywingz/ponder:latest discord-bot

Example Output

AI, or Artificial Intelligence, refers to the simulation of human intelligence processes by machines, especially computer systems. These processes include learning (the acquisition of information and rules for using the information), reasoning (using the rules to reach approximate or definite conclusions), and self-correction.

A small chat

ponder --convo

Example Ouput

Ponder:
    Hello! How can I assist you today?

You:
  You are so helpful

Ponder:
    Thank you for your kind words! I'm here to help. If you have any questions or need assistance with something, feel free to ask.

Image Generation

ponder image "a ferocious cat with wings and fire"

Example Ouput

🖼  Creating Image...
🌐 Image URL: https://oaidalleapiprodscus.blob.core.windows.net/private/org-RCMQxIXre0Olhs0AvLVp672o/user-F1wdcIVNf2VrRqBRD0JWUczI/img-B4gaFhJQFl25authc5zMdw3T.png?st=2023-12-12T19%3A42%3A45Z&se=2023-12-12T21%3A42%3A45Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-12T05%3A22%3A04Z&ske=2023-12-13T05%3A22%3A04Z&sks=b&skv=2021-08-06&sig=RteaU2hpHlz5VElxgxdwUahGHoQmy6SEAVdpsjDbt%2Bg%3D

You can always refer to the --help menu as well.

        Ponder
        GitHub: https://github.com/seemywingz/ponder
        App Version: v0.4.2

  Ponder uses OpenAI's API to generate text responses to user input.
  Or whatever else you can think of. 🤔

Usage:
  ponder [flags]
  ponder [command]

Available Commands:
  adventure   lets you dive into a captivating text adventure
  chat        Open ended chat with OpenAI
  completion  Generate the autocompletion script for the specified shell
  discord-bot Discord Chat Bot Integration
  help        Help about any command
  image       Generate an image from a prompt
  tts         OpenAI Text to Speech API - TTS

Flags:
      --config string   config file
  -c, --convo           Conversational Style chat
  -h, --help            help for ponder
      --narrate         Narrate the response using TTS and the default audio output
  -v, --verbose         verbose output
      --voice string    Voice to use: alloy, ash, coral, echo, fable, onyx, nova, sage and shimmer (default "onyx")

Use "ponder [command] --help" for more information about a command.