From e301cb5c40e551531a046a7b0d3b21b312109adf Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 25 Mar 2023 16:33:45 +0800 Subject: Update --- bin/gpt/gpt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/gpt/gpt b/bin/gpt/gpt index f331050..c9917c7 100755 --- a/bin/gpt/gpt +++ b/bin/gpt/gpt @@ -70,8 +70,10 @@ Options: If STDIN is given, it would be append to the end of message. Special input: - . If input starts with '.', then a prompt of options shows up. - User can modify option value for API calls. + .c A special prompt of options shows up. User can dynamically modify + option values for API calls. + + .h Ask gpt the usage of this script Reference: https://platform.openai.com/docs/api-reference/completions EOF @@ -123,28 +125,35 @@ _get_content() { [ ! -t 0 ] && data="$(cat)" if [ ! "$SKIP_INPUT" = true ] ; then - # Read content it from terminal + # Read content from terminal while true; do read -e -r -p "Let's Chat: " content