Merge pull request #25 from oligeo/bugfixes

Update chatgpt.sh
This commit is contained in:
0xacx 2023-03-03 01:24:34 +02:00 committed by GitHub
commit a8b61627b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,12 +147,14 @@ while [[ "$#" -gt 0 ]]; do
case $1 in
-i | --init-prompt)
CHAT_INIT_PROMPT="$2"
SYSTEM_PROMPT="$2"
CONTEXT=true
shift
shift
;;
--init-prompt-from-file)
CHAT_INIT_PROMPT=$(cat "$2")
SYSTEM_PROMPT=$(cat "$2")
CONTEXT=true
shift
shift
@ -190,13 +192,11 @@ while [[ "$#" -gt 0 ]]; do
-c | --chat-context)
CONTEXT=true
shift
shift
;;
-cc | --chat-completion)
MODEL="gpt-3.5-turbo"
CHAT_COMPLETION=true
shift
shift
;;
*)
echo "Unknown parameter: $1"