You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"You need to set your OPENAI_KEY to use this script"
18
17
echo"You can set it temporarily by running this on your terminal: export OPENAI_KEY=YOUR_KEY_HERE"
@@ -37,15 +36,34 @@ Commands:
37
36
*If a command modifies your file system or dowloads external files the script will show a warning before executing.
38
37
39
38
Options:
40
-
-i, --init-prompt - Provide initial chat prompt to use in context
41
-
--init-prompt-from-file - Provide initial prompt from file
42
-
-p, --prompt - Provide prompt instead of starting chat
43
-
--prompt-from-file - Provide prompt from file
44
-
-t, --temperature - Temperature
45
-
--max-tokens - Max number of tokens
46
-
-m, --model - Model
47
-
-s, --size - Image size. (The sizes that are accepted by the OpenAI API are 256x256, 512x512, 1024x1024)
48
-
-c, --chat-context - For models that do not support chat context by default (all models except gpt-3.5-turbo and gpt-4), you can enable chat context, for the model to remember your previous questions and its previous answers. It also makes models aware of todays date and what data it was trained on.
39
+
-i, --init-prompt Provide initial chat prompt to use in context
40
+
41
+
--init-prompt-from-file Provide initial prompt from file
42
+
43
+
-p, --prompt Provide prompt instead of starting chat
44
+
45
+
--prompt-from-file Provide prompt from file
46
+
47
+
-b, --big-prompt Allow multi-line prompts during chat mode
48
+
49
+
-t, --temperature Temperature
50
+
51
+
--max-tokens Max number of tokens
52
+
53
+
-l, --list List available openAI models
54
+
55
+
-m, --model Model to use
56
+
57
+
-s, --size Image size. (The sizes that are accepted by the
58
+
OpenAI API are 256x256, 512x512, 1024x1024)
59
+
60
+
-c, --chat-context For models that do not support chat context by
61
+
default (all models except gpt-3.5-turbo and
62
+
gpt-4), you can enable chat context, for the
63
+
model to remember your previous questions and
64
+
its previous answers. It also makes models
65
+
aware of todays date and what data it was trained
66
+
on.
49
67
50
68
EOF
51
69
}
@@ -60,6 +78,17 @@ handle_error() {
60
78
fi
61
79
}
62
80
81
+
# request to openAI API models endpoint. Returns a list of models
0 commit comments