Skip to content

Instantly share code, notes, and snippets.

@cwchriswilliams
cwchriswilliams / chat.sh
Created November 14, 2023 17:06
Simple generic bash script that handles communication with ChatGPT using a system prompt from system_message.txt
#!/bin/bash
# Function to check if required commands are installed
check_dependencies() {
for cmd in curl jq; do
if ! command -v "$cmd" &> /dev/null; then
echo "Error: $cmd is not installed." >&2
exit 1
fi
done

Keybase proof

I hereby claim:

  • I am cwchriswilliams on github.
  • I am cwchriswilliams (https://keybase.io/cwchriswilliams) on keybase.
  • I have a public key ASD66lDImdUBsQe7T5J9WH2j0i1x4RB8UJjqTCOn6nTwvQo

To claim this, I am signing this object: