From a6a9365e2bf8cd98c79d1c6e570a6c304da1ad66 Mon Sep 17 00:00:00 2001 From: Tony Worm Date: Mon, 20 Mar 2023 17:00:32 -0400 Subject: [PATCH] update readme --- README.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8979d11..7ef8bb7 100644 --- a/README.md +++ b/README.md @@ -50,13 +50,18 @@ Examples: chatgpt -c ... # model options (https://platform.openai.com/docs/api-reference/completions/create) - chatgpt -T 4096 # set max tokens in reponse [0,4096] - chatgpt -C # clean whitespace before sending - chatgpt -E # echo back the prompt, useful for vim coding - chatgpt --temp # set the temperature param [0.0,2.0] - chatgpt --topp # set the TopP param [0.0,1.0] - chatgpt --pres # set the Presence Penalty [-2.0,2.0] - chatgpt --freq # set the Frequency Penalty [-2.0,2.0] + chatgpt -T 4096 # set max tokens in reponse [0,4096] + chatgpt -C # clean whitespace before sending + chatgpt -E # echo back the prompt, useful for vim coding + chatgpt --temp # set the temperature param [0.0,2.0] + chatgpt --topp # set the TopP param [0.0,1.0] + chatgpt --pres # set the Presence Penalty [-2.0,2.0] + chatgpt --freq # set the Frequency Penalty [-2.0,2.0] + + # change model selection, available models are listed here: + # https://pkg.go.dev/github.com/sashabaranov/go-openai#Client.ListModels + chatgpt -m text-davinci-003 # set the model to text-davinci-003 (the default) + chatgpt -m text-ada-001 # set the model to text-ada-001 Usage: chatgpt [file] [flags] @@ -70,6 +75,7 @@ Flags: --freq float set the Frequency Penalty parameter -h, --help help for chatgpt -i, --interactive start an interactive session with ChatGPT + -m, --model string select the model to use with -q or -e (default "text-davinci-003") --pres float set the Presence Penalty parameter -p, --pretext string pretext to add to ChatGPT input, use 'list' or 'view:' to inspect predefined, '' to use a pretext, or otherwise supply any custom text -q, --question string ask a single question and print the response back @@ -106,6 +112,7 @@ starting interactive session... 'topp' set the TopP param [0.0,1.0] 'pres' set the Presence Penalty [-2.0,2.0] 'freq' set the Frequency Penalty [-2.0,2.0] + 'model' to change the selected model > ```