From 3b8b1fcdb12c91d5a8d43f2006c9a7f9a83ad485 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 21 Mar 2023 22:33:32 +0800 Subject: Update --- bin/gpt/gpt.image | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 bin/gpt/gpt.image diff --git a/bin/gpt/gpt.image b/bin/gpt/gpt.image new file mode 100755 index 0000000..5f85fc0 --- /dev/null +++ b/bin/gpt/gpt.image @@ -0,0 +1,85 @@ +#! /bin/bash + +[ -z "$OPENAI_API_KEY" ] && OPENAI_API_KEY=$(token openai) +[ -z "$OPENAI_API_KEY" ] && echo API KEY not specified && exit 1 + +_print_helper_message() { + cat <