~ $ chatgpt -l
Error: failed to make request: Get "https://api.openai.com/v1/models": dial tcp: lookup api.openai.com on [::1]:53: read udp [::1]:46086->[::1]:53: read: connection refused
Usage:
chatgpt [flags]
Flags:
--clear-history Clear all prior conversation context for the current thread
-c, --config Display the configuration
-h, --help help for chatgpt
-i, --interactive Use interactive mode
-l, --list-models List available models
-q, --query Use query mode instead of stream mode
--set-max-tokens int Set a new default max token size by specifying the max tokens
--set-model string Set a new default GPT model by specifying the model name
-v, --version Display the version information
failed to make request: Get "https://api.openai.com/v1/models": dial tcp: lookup api.openai.com on [::1]:53: read udp [::1]:46086->[::1]:53: read: connection refused
~ $ chatgpt -c
name: openai
api_key: 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
model: gpt-3.5-turbo
max_tokens: 4096
thread: default
omit_history: false
url: https://api.openai.com
completions_path: /v1/chat/completions
models_path: /v1/models