diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-24 01:22:39 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-24 01:22:39 +0800 |
| commit | 0a6c50b8ffead961aeb1f7d4888eae7fd75e9891 (patch) | |
| tree | 24fb53bd2c3f77460e95ac7698a8c6545ccd18a0 /bin | |
| parent | f8d6037a989e40425f2faa09c6eb892de0c83509 (diff) | |
Update
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/gpt/gpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/gpt/gpt b/bin/gpt/gpt index 1fa78d7..c17ab69 100755 --- a/bin/gpt/gpt +++ b/bin/gpt/gpt | |||
| @@ -31,8 +31,8 @@ Usage: gpt [-h] [-m MODEL] [-m4] [-b BEHAVIOR] [-t temperature] | |||
| 31 | [-M MAX_TOKENS] [-s] [MESSAGE] | 31 | [-M MAX_TOKENS] [-s] [MESSAGE] |
| 32 | 32 | ||
| 33 | Env: | 33 | Env: |
| 34 | OPENAI_API_KEY (Required) | 34 | OPENAI_API_KEY Generate API key from https://platform.openai.com/account/api-keys |
| 35 | Generate API key from https://platform.openai.com/account/api-keys | 35 | (Required) |
| 36 | 36 | ||
| 37 | Options: | 37 | Options: |
| 38 | -h, --help show this help message and exit | 38 | -h, --help show this help message and exit |
| @@ -232,7 +232,7 @@ EOF | |||
| 232 | jq . | tee -a "$cache" | \ | 232 | jq . | tee -a "$cache" | \ |
| 233 | jq -r .choices[0].message.content | 233 | jq -r .choices[0].message.content |
| 234 | )" | 234 | )" |
| 235 | echo -e "${response}\n\n------\n" | 235 | echo -e "${response}\n\n======\n" |
| 236 | 236 | ||
| 237 | # Append newest message into session | 237 | # Append newest message into session |
| 238 | assistant_message="$(cat <<EOF | 238 | assistant_message="$(cat <<EOF |