An elegant interactive CLI for ChatGPT
Published by j178 9 months ago
Published by j178 9 months ago
Published by j178 10 months ago
Published by j178 12 months ago
Published by j178 about 1 year ago
Published by j178 about 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
-p
(#66) (@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
alt+v
to paste too (#46) (@j178)Published by j178 over 1 year ago
~/.config/chatgpt/config.json
, and the configuration format has been changed. You may need to manually create a new configuration file using the following format:{
// Your OpenAI API key
"api_key": "sk-xxxxxx",
// OpenAI API endpoint
"endpoint": "https://api.openai.com/v1",
// Predefined prompts, use `-p` flag to switch prompt
"prompts": {
"default": "You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible."
},
// Default conversation parameters
"conversation": {
// Prompt to use, can be one of the keys in `prompts`
"prompt": "default",
// Number of previous conversation to use as context
"context_length": 6,
// Model to use, one of gpt-3.5 and gpt-4 series models
"model": "gpt-3.5-turbo",
// Whether to stream the response
"stream": true,
// Maximum number of tokens to generate
"max_tokens": 1024
}
}
ctrl+j
ctrl+r
has been changed to remove the current conversationctrl+t
to create a new conversationctrl+left
and ctrl+right
to navigate through conversationsctrl+r
to remove the current conversation~/.config/chatgpt/conversations.json
ctrl+x
. The conversation context will not be sent in the next question.~/.config/chatgpt/config.json
(@j178)Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
Published by j178 over 1 year ago
OPENAI_API_ENDPOINT
env instead of flag (#21) (@j178)